Skip to content

Commit 3bdd2ef

Browse files
committed
MAGETWO-37594: Implementation and fixes after review
1 parent 4c6bc0b commit 3bdd2ef

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/new-category-dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
define([
88
'jquery',
99
'jquery/ui',
10-
'Magento_Ui/js/dialog/dialog',
10+
'Magento_Ui/js/popup/popup',
1111
'mage/translate',
1212
'mage/backend/tree-suggest',
1313
'mage/backend/validation'
@@ -52,7 +52,7 @@ define([
5252
options.errorClass, options.validClass || '');
5353
}
5454
});
55-
this.element.dialog({
55+
this.element.popup({
5656
type: 'slide',
5757
dialogClass: 'mage-new-category-dialog form-inline',
5858
title: $.mage.__('Create Category'),

app/code/Magento/Ui/view/base/web/js/dialog/dialog.js renamed to app/code/Magento/Ui/view/base/web/js/popup/popup.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ define([
66
"jquery",
77
"underscore",
88
"mage/template",
9-
"text!ui/template/dialog/dialog-modal.html",
10-
"text!ui/template/dialog/dialog-slide.html",
9+
"text!ui/template/popup/popup-modal.html",
10+
"text!ui/template/popup/popup-slide.html",
1111
"jquery/ui",
1212
"mage/translate"
1313
], function($, _, template, modalTpl, slideTpl){
@@ -16,7 +16,7 @@ define([
1616
/**
1717
* Dialog Widget
1818
*/
19-
$.widget('mage.dialog', {
19+
$.widget('mage.popup', {
2020
options: {
2121
type: 'modal',
2222
title: '',
@@ -239,5 +239,5 @@ define([
239239
}
240240
});
241241

242-
return $.mage.dialog;
242+
return $.mage.popup;
243243
});

0 commit comments

Comments
 (0)