File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
app/code/Magento/Checkout/view/frontend/web Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -123,20 +123,6 @@ define([
123
123
$ ( '[data-block="minicart"]' ) . find ( '[data-role="dropdownDialog"]' ) . dropdownDialog ( 'close' ) ;
124
124
} ,
125
125
126
- /**
127
- * @return {Boolean }
128
- */
129
- closeSidebar : function ( ) {
130
- var minicart = $ ( '[data-block="minicart"]' ) ;
131
-
132
- minicart . on ( 'click' , '[data-action="close"]' , function ( event ) {
133
- event . stopPropagation ( ) ;
134
- minicart . find ( '[data-role="dropdownDialog"]' ) . dropdownDialog ( 'close' ) ;
135
- } ) ;
136
-
137
- return true ;
138
- } ,
139
-
140
126
/**
141
127
* @param {String } productType
142
128
* @return {*|String }
Original file line number Diff line number Diff line change 21
21
id ="btn-minicart-close "
22
22
class ="action close "
23
23
data-action ="close "
24
- data-bind ="attr: { title: $t('Close') } ">
24
+ data-bind ="
25
+ attr: {
26
+ title: $t('Close')
27
+ },
28
+ click: closeMinicart()
29
+ ">
25
30
< span translate ="'Close' "/>
26
31
</ button >
27
32
74
79
75
80
< ifnot args ="getCartParam('summary_count') ">
76
81
< strong class ="subtitle empty "
77
- data-bind ="visible: closeSidebar() "
78
82
translate ="'You have no items in your shopping cart.' "
79
83
/>
80
84
< if args ="getCartParam('cart_empty_message') ">
You can’t perform that action at this time.
0 commit comments