Skip to content

Commit aad74ae

Browse files
author
Maxim Medinskiy
committed
MAGETWO-33076: Prepare pull request
- fixed merge conflicts
1 parent 4506320 commit aad74ae

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Bundle/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes

1 file changed

+3
-1
lines changed

app/code/Magento/Bundle/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes/Extend.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public function getElementHtml()
8989
$html;
9090
}
9191
if ($this->getDisableChild() && !$this->getElement()->getReadonly()) {
92-
$html .= "<script type=\"text/javascript\">
92+
$html .= "<script>
93+
require(['prototype'], function(){
9394
function " .
9495
$switchAttributeCode .
9596
"_change() {
@@ -155,6 +156,7 @@ function " .
155156
$html .= "$('" . $switchAttributeCode . "').observe('change', " . $switchAttributeCode . "_change);";
156157
}
157158
$html .= $switchAttributeCode . "_change();
159+
});
158160
</script>";
159161
}
160162
return $html;

0 commit comments

Comments
 (0)