Skip to content

Commit 5127c02

Browse files
committed
MAGETWO-34956: Product Template page does not work in IE9 and FF
1 parent f12abf2 commit 5127c02

File tree

2 files changed

+3
-2
lines changed
  • app/code/Magento
    • Catalog/view/adminhtml/templates/catalog/product/attribute/set
    • ConfigurableProduct/view/adminhtml/templates/catalog/product/attribute/set

2 files changed

+3
-2
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set/main.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ require([
3939
</div>
4040
<div id="tree-div2" class="attribute-set-tree"></div>
4141
<script>
42-
require(["jquery", "extjs/ext-tree-checkbox", "prototype"], function(jQuery){
42+
define("tree-panel", ["jquery", "extjs/ext-tree-checkbox", "prototype"], function(jQuery){
4343

4444
//<![CDATA[
4545
var allowDragAndDrop = <?php echo($block->getIsReadOnly() ? 'false' : 'true'); ?>;
@@ -406,6 +406,7 @@ require(["jquery", "extjs/ext-tree-checkbox", "prototype"], function(jQuery){
406406
//]]>
407407

408408
});
409+
require(["tree-panel"]);
409410
</script>
410411
</div>
411412
</div>

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/catalog/product/attribute/set/js.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
?>
1111
<script>
12-
require(["jquery", "extjs/ext-tree-checkbox", "prototype"], function(){
12+
require(["tree-panel"], function(){
1313
ConfigurableNodeExists = function(currentNode) {
1414
for (var i in currentNode.childNodes ) {
1515
if (currentNode.childNodes[i].id) {

0 commit comments

Comments
 (0)