Skip to content

Commit 47b227b

Browse files
committed
Merge remote-tracking branch 'goinc/MAGETWO-33655' into MAGETWO-34346
2 parents aa54f3d + fe819db commit 47b227b

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/checkboxes/tree.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414
<script>
1515
require([
16+
'jquery',
1617
"prototype",
1718
"extjs/ext-tree-checkbox",
1819
"mage/adminhtml/form"
19-
], function(){
20+
], function(jQuery){
2021

2122
//<![CDATA[
2223

@@ -69,7 +70,7 @@ Ext.extend(Ext.tree.TreePanel.Enhanced, Ext.tree.TreePanel, {
6970
}
7071
});
7172

72-
Ext.onReady(function()
73+
jQuery(function()
7374
{
7475
var categoryLoader = new Ext.tree.TreeLoader({
7576
dataUrl: '<?php echo $block->getLoadTreeUrl() ?>'

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/tree.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function _renderNewTree(config, scopeParams) {
272272
//updateContent(url); //commented since ajax requests replaced with http ones to load a category
273273
}
274274

275-
Ext.onReady(function () {
275+
jQuery(function () {
276276
categoryLoader = new Ext.tree.TreeLoader({
277277
dataUrl:'<?php echo $block->getLoadTreeUrl() ?>'
278278
});

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/widget/tree.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div id="<?php echo $_divId ?>" class="tree"></div>
1313

1414
<script>
15-
require(["prototype", "extjs/ext-tree-checkbox"], function(){
15+
require(['jquery', "prototype", "extjs/ext-tree-checkbox"], function(jQuery){
1616

1717
var tree<?php echo $block->getId() ?>;
1818

@@ -54,7 +54,7 @@ Ext.extend(Ext.tree.TreePanel.Enhanced, Ext.tree.TreePanel, {
5454
}
5555
});
5656

57-
Ext.onReady(function()
57+
jQuery(function()
5858
{
5959
var emptyNodeAdded = <?php echo($block->getWithEmptyNode() ? 'false' : 'true') ?>;
6060

app/code/Magento/DesignEditor/view/adminhtml/templates/editor/tools/files/tree.phtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ require([
3535
"extjs/ext-tree-checkbox",
3636
'Magento_DesignEditor/js/tools-files'
3737
], function(jQuery){
38-
39-
Ext.onReady(function(){
38+
jQuery(function(){
4039
var Tree = Ext.tree;
4140
var tree = new Tree.TreePanel('tree', {
4241
animate:true,

app/code/Magento/Widget/view/adminhtml/templates/instance/edit/layout.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
</fieldset>
1818
<script>
1919
require([
20+
'jquery',
2021
'mage/template',
2122
"prototype",
2223
"extjs/ext-tree-checkbox"
23-
], function (mageTemplate) {
24+
], function (jQuery, mageTemplate) {
2425

2526
//<![CDATA[
2627

@@ -476,7 +477,7 @@ var WidgetInstance = {
476477

477478
window.WidgetInstance = WidgetInstance;
478479

479-
Ext.onReady(function(){
480+
jQuery(function(){
480481
<?php foreach ($block->getPageGroups() as $pageGroup): ?>
481482
WidgetInstance.addPageGroup(<?php echo Zend_Json::encode($pageGroup) ?>);
482483
<?php endforeach; ?>

0 commit comments

Comments
 (0)