File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
app/code/Magento/Sales/view/adminhtml/web/order/create Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -1493,14 +1493,20 @@ define([
1493
1493
}
1494
1494
1495
1495
if ( action === 'change' ) {
1496
- var confirmText = message . replace ( / % s / , customerGroupOption . text ) ;
1496
+ var self = this ,
1497
+ confirmText = message . replace ( / % s / , customerGroupOption . text ) ;
1497
1498
confirmText = confirmText . replace ( / % s / , currentCustomerGroupTitle ) ;
1498
- if ( confirm ( confirmText ) ) {
1499
- $$ ( '#' + groupIdHtmlId + ' option' ) . each ( function ( o ) {
1500
- o . selected = o . readAttribute ( 'value' ) == groupId ;
1501
- } ) ;
1502
- this . accountGroupChange ( ) ;
1503
- }
1499
+ confirm ( {
1500
+ content : confirmText ,
1501
+ actions : {
1502
+ confirm : function ( ) {
1503
+ $$ ( '#' + groupIdHtmlId + ' option' ) . each ( function ( o ) {
1504
+ o . selected = o . readAttribute ( 'value' ) == groupId ;
1505
+ } ) ;
1506
+ self . accountGroupChange ( ) ;
1507
+ }
1508
+ }
1509
+ } )
1504
1510
} else if ( action === 'inform' ) {
1505
1511
alert ( {
1506
1512
content : message + '\n' + groupMessage
You can’t perform that action at this time.
0 commit comments