We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7abfdb4 + 7774b70 commit 20ed919Copy full SHA for 20ed919
app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js
@@ -1152,11 +1152,22 @@ define([
1152
jQuery('#edit_form').triggerHandler('save');
1153
}
1154
if (this.orderItemChanged) {
1155
- if (confirm('You have item changes')) {
1156
- disableAndSave();
1157
- } else {
1158
- this.itemsUpdate();
1159
- }
+ var self = this;
+
+ jQuery('#edit_form').trigger('processStop');
+ confirm({
1160
+ content: jQuery.mage.__('You have item changes'),
1161
+ actions: {
1162
+ confirm: function() {
1163
+ jQuery('#edit_form').trigger('processStart');
1164
+ disableAndSave();
1165
+ },
1166
+ cancel: function() {
1167
+ self.itemsUpdate();
1168
+ }
1169
1170
+ });
1171
} else {
1172
disableAndSave();
1173
0 commit comments