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 4506320 commit aad74aeCopy full SHA for aad74ae
app/code/Magento/Bundle/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes/Extend.php
@@ -89,7 +89,8 @@ public function getElementHtml()
89
$html;
90
}
91
if ($this->getDisableChild() && !$this->getElement()->getReadonly()) {
92
- $html .= "<script type=\"text/javascript\">
+ $html .= "<script>
93
+ require(['prototype'], function(){
94
function " .
95
$switchAttributeCode .
96
"_change() {
@@ -155,6 +156,7 @@ function " .
155
156
$html .= "$('" . $switchAttributeCode . "').observe('change', " . $switchAttributeCode . "_change);";
157
158
$html .= $switchAttributeCode . "_change();
159
+ });
160
</script>";
161
162
return $html;
0 commit comments