File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Checkout/view/frontend/web/js
Ui/view/base/web/js/modal Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ define([
53
53
actions : {
54
54
confirm : function ( ) {
55
55
self . _removeItem ( $ ( event . currentTarget ) ) ;
56
+ } ,
57
+ always : function ( event ) {
58
+ event . stopImmediatePropagation ( ) ;
56
59
}
57
60
}
58
61
} ) ;
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ define([
40
40
/**
41
41
* Click handler.
42
42
*/
43
- click : function ( ) {
44
- this . closeModal ( ) ;
43
+ click : function ( event ) {
44
+ this . closeModal ( event ) ;
45
45
}
46
46
} , {
47
47
text : $ . mage . __ ( 'OK' ) ,
@@ -50,8 +50,8 @@ define([
50
50
/**
51
51
* Click handler.
52
52
*/
53
- click : function ( ) {
54
- this . closeModal ( true ) ;
53
+ click : function ( event ) {
54
+ this . closeModal ( event , true ) ;
55
55
}
56
56
} ]
57
57
} ,
@@ -82,15 +82,15 @@ define([
82
82
/**
83
83
* Close modal window.
84
84
*/
85
- closeModal : function ( result ) {
85
+ closeModal : function ( event , result ) {
86
86
result = result || false ;
87
87
88
88
if ( result ) {
89
- this . options . actions . confirm ( ) ;
89
+ this . options . actions . confirm ( event ) ;
90
90
} else {
91
- this . options . actions . cancel ( ) ;
91
+ this . options . actions . cancel ( event ) ;
92
92
}
93
- this . options . actions . always ( ) ;
93
+ this . options . actions . always ( event ) ;
94
94
this . element . bind ( 'confirmclosed' , _ . bind ( this . _remove , this ) ) ;
95
95
96
96
return this . _super ( ) ;
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ define([
78
78
/**
79
79
* Default action on button click
80
80
*/
81
- click : function ( ) {
82
- this . closeModal ( ) ;
81
+ click : function ( event ) {
82
+ this . closeModal ( event ) ;
83
83
}
84
84
} ]
85
85
} ,
You can’t perform that action at this time.
0 commit comments