Skip to content

Commit 0e4916b

Browse files
committed
MAGETWO-37594: Implementation and fixes after review
1 parent 34a0e64 commit 0e4916b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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
@@ -59,11 +59,11 @@ define([
5959
buttons: [{
6060
text: $.mage.__('Create Category'),
6161
class: 'action-primary',
62-
click: function () {
62+
click: function (e) {
6363
if (!newCategoryForm.valid()) {
6464
return;
6565
}
66-
var thisButton = $(this);
66+
var thisButton = $(e.currentTarget);
6767

6868
thisButton.prop('disabled', true);
6969
$.ajax({

app/code/Magento/Ui/view/base/web/js/dialog/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ define([
176176
_.each(this.options.buttons, function(btn, key) {
177177
var button = that.buttons[key];
178178

179-
$(button).on('click', _.bind(btn.click, button));
179+
$(button).on('click', _.bind(btn.click, that));
180180
});
181181
},
182182
/**

0 commit comments

Comments
 (0)