File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
app/code/Magento/Sales/view/adminhtml/web/order/edit Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 7
7
define ( [
8
8
"jquery" ,
9
9
"jquery/ui" ,
10
- 'Magento_Ui/js/dialog/dialog ' ,
10
+ 'Magento_Ui/js/modal/modal ' ,
11
11
"mage/translate"
12
12
] , function ( $ ) {
13
13
"use strict" ;
14
14
$ . widget ( 'mage.orderEditDialog' , {
15
15
options : {
16
16
url : null ,
17
17
message : null ,
18
- dialog : null
18
+ modal : null
19
19
} ,
20
20
21
21
/**
@@ -26,10 +26,10 @@ define([
26
26
} ,
27
27
28
28
/**
29
- * Show dialog
29
+ * Show modal
30
30
*/
31
31
showDialog : function ( ) {
32
- this . options . dialog . html ( this . options . message ) . trigger ( 'openDialog ') ;
32
+ this . options . dialog . html ( this . options . message ) . modal ( 'openModal ') ;
33
33
} ,
34
34
35
35
/**
@@ -40,11 +40,24 @@ define([
40
40
} ,
41
41
42
42
/**
43
- * Prepare dialog
43
+ * Prepare modal
44
44
* @protected
45
45
*/
46
46
_prepareDialog : function ( ) {
47
- this . options . dialog = $ ( '<div class="ui-dialog-content ui-widget-content"></div>' ) . dialog ( ) ;
47
+ var self = this ;
48
+
49
+ this . options . dialog = $ ( '<div class="ui-dialog-content ui-widget-content"></div>' ) . modal ( {
50
+ type : 'popup' ,
51
+ modalClass : 'edit-order-popup' ,
52
+ title : $ . mage . __ ( 'Edit Order' ) ,
53
+ buttons : [ {
54
+ text : $ . mage . __ ( 'Ok' ) ,
55
+ 'class' : 'action-primary' ,
56
+ click : function ( ) {
57
+ self . redirect ( ) ;
58
+ }
59
+ } ]
60
+ } ) ;
48
61
}
49
62
} ) ;
50
63
You can’t perform that action at this time.
0 commit comments