Commit acb6ea32 by dhn

测试

parent e410b6d4
...@@ -52,7 +52,17 @@ ...@@ -52,7 +52,17 @@
$('.swatch-attribute-selected-option-size-content').hide(); $('.swatch-attribute-selected-option-size-content').hide();
} }
}); });
window.onload = function(){
if($('.swatch-attribute .swatch-option'))
{
var swatchObj = $('.swatch-attribute');
for(var i=0;i<swatchObj.length;i++)
{
$(swatchObj[i]).find('.swatch-option:first').trigger('click');
}
}
}
}); });
</script> </script>
......
...@@ -333,17 +333,6 @@ define([ ...@@ -333,17 +333,6 @@ define([
} else { } else {
console.log('SwatchRenderer: No input data received'); console.log('SwatchRenderer: No input data received');
} }
window.onload = function(){
if($('.swatch-attribute .swatch-option'))
{
var swatchObj = $('.swatch-attribute');
for(var i=0;i<swatchObj.length;i++)
{
$(swatchObj[i]).find('.swatch-option:first').trigger('click');
}
}
}
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment