We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b457988 commit 360a094Copy full SHA for 360a094
app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes/extend.phtml
@@ -61,7 +61,9 @@ $isElementReadonly = $block->getElement()
61
&& !$block->getProduct()->isObjectNew())) { ?>
62
$('<?= /* @escapeNotVerified */ $switchAttributeCode?>').observe('change', <?= /* @escapeNotVerified */ $switchAttributeCode?>_change);
63
<?php } ?>
64
- <?= /* @escapeNotVerified */ $switchAttributeCode?>_change();
+ Event.observe(window, 'load', function(){
65
+ <?= /* @escapeNotVerified */ $switchAttributeCode?>_change();
66
+ });
67
});
68
</script>
69
0 commit comments