File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
app/code/Magento/AdminNotification/view/adminhtml
templates/system/messages Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 23
23
{
24
24
"[data-role=system_messages_list]": {
25
25
"Magento_AdminNotification/js/system/messages/popup": {
26
- class: ' modal-system-messages ui-popup-message'
26
+ " class":" modal-system-messages ui-popup-message"
27
27
}
28
28
}
29
29
}
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
- */
4
+ */
5
5
6
6
define ( [
7
7
'jquery' ,
8
8
'Magento_Ui/js/modal/modal'
9
- ] , function ( $ ) {
9
+ ] , function ( $ , modal ) {
10
10
'use strict' ;
11
11
12
12
return function ( data , element ) {
13
- if ( this . modal ) {
14
- this . modal . html ( $ ( element ) . html ( ) ) ;
13
+
14
+ if ( modal . modal ) {
15
+ modal . modal . html ( $ ( element ) . html ( ) ) ;
15
16
} else {
16
- this . modal = $ ( element ) . modal ( {
17
+ modal . modal = $ ( element ) . modal ( {
17
18
modalClass : data . class ,
18
19
type : 'popup' ,
19
20
buttons : [ ]
20
21
} ) ;
21
22
}
22
- this . modal . modal ( 'openModal' ) ;
23
+
24
+ modal . modal . modal ( 'openModal' ) ;
23
25
} ;
24
26
} ) ;
You can’t perform that action at this time.
0 commit comments