File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2971,11 +2971,11 @@ function showDeletePopup() {
2971
2971
2972
2972
const dialog = $ ( `.delete.modal${ filter } ` ) ;
2973
2973
dialog . find ( '.name' ) . text ( $this . data ( 'name' ) ) ;
2974
- for ( const key of Object . keys ( dataArray ) ) {
2974
+ Object . keys ( dataArray ) . forEach ( ( key ) => {
2975
2975
if ( key && key . startsWith ( 'data' ) ) {
2976
2976
dialog . find ( `.${ key } ` ) . text ( dataArray [ key ] ) ;
2977
2977
}
2978
- }
2978
+ } ) ;
2979
2979
2980
2980
dialog . modal ( {
2981
2981
closable : false ,
@@ -2988,14 +2988,14 @@ function showDeletePopup() {
2988
2988
const postData = {
2989
2989
_csrf : csrf ,
2990
2990
} ;
2991
- for ( const key of Object . keys ( dataArray ) ) {
2991
+ Object . keys ( dataArray ) . forEach ( ( key ) => {
2992
2992
if ( key && key . startsWith ( 'data' ) ) {
2993
2993
postData [ key . substr ( 4 ) ] = dataArray [ key ] ;
2994
2994
}
2995
2995
if ( key === 'id' ) {
2996
2996
postData [ 'id' ] = dataArray [ 'id' ] ;
2997
2997
}
2998
- }
2998
+ } ) ;
2999
2999
3000
3000
$ . post ( $this . data ( 'url' ) , postData ) . done ( ( data ) => {
3001
3001
window . location . href = data . redirect ;
You can’t perform that action at this time.
0 commit comments