File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
app/code/Magento/User/view/adminhtml/web/js Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
define ( [
6
- " jquery"
7
- ] , function ( $ ) {
6
+ ' jquery'
7
+ ] , function ( $ ) {
8
8
'use strict' ;
9
9
10
+ var postData ;
11
+
10
12
return function ( params , elem ) {
11
13
12
- elem . on ( 'click' , function ( ) {
13
- if ( $ . validator . validateElement ( $ ( '[name="current_password"]' ) ) ) {
14
- var postData = {
15
- 'data' : {
16
- 'user_id' : params . objId ,
17
- 'current_password' : $ ( '[name="current_password"]' ) . val ( )
18
- }
14
+ elem . on ( 'click' , function ( ) {
15
+
16
+ postData = {
17
+ 'data' : {
18
+ 'user_id' : params . objId ,
19
+ 'current_password' : $ ( '[name="current_password"]' ) . val ( )
19
20
}
20
- deleteConfirm ( params . message , params . url , postData ) ;
21
+ } ;
22
+
23
+ if ( $ . validator . validateElement ( $ ( '[name="current_password"]' ) ) ) {
24
+ window . deleteConfirm ( params . message , params . url , postData ) ;
21
25
}
22
26
} ) ;
23
27
}
You can’t perform that action at this time.
0 commit comments