Skip to content

Commit 4a08c4d

Browse files
author
Valeriy Nayda
committed
Merge remote-tracking branch 'origin/MAGETWO-28913' into MAGETWO-35251
2 parents 6e8a92c + 97376aa commit 4a08c4d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/custom-options.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ define([
132132
at: 'center top',
133133
of: 'body'
134134
},
135+
create: function (event, ui) {
136+
$(document).on('click', '#productGrid_massaction-form button', function () {
137+
$('#import-custom-options-apply-button').trigger('click', 'massActionTrigger');
138+
});
139+
},
135140
open: function () {
136141
$(this).closest('.ui-dialog').addClass('ui-dialog-active');
137142

@@ -195,19 +200,14 @@ define([
195200
}]
196201
});
197202
importContainer.load(
198-
this.options.productGridUrl, {
199-
form_key: this.options.formKey
200-
},
203+
this.options.productGridUrl,
204+
{form_key: this.options.formKey},
201205
function () {
202206
importContainer.dialog('open');
203207
}
204208
);
205209
},
206210

207-
'click #productGrid_massaction-form button': function () {
208-
$('#import-custom-options-apply-button').trigger('click', 'massActionTrigger');
209-
},
210-
211211
/**
212212
* Change custom option type
213213
*/
@@ -470,4 +470,4 @@ define([
470470
}
471471
});
472472

473-
});
473+
});

0 commit comments

Comments
 (0)