File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 16471647 return ;
16481648 }
16491649
1650- const settingsId = $btn . closest ( '.setting-fields-wrap' ) . data ( 'setting-id' ) ;
1650+ const settingsId = $ ( '.setting-fields-wrap' ) . data ( 'setting-id' ) ;
16511651 const tab = $btn . data ( 'tab' ) || '' ;
16521652 const originalText = $btn . text ( ) ;
16531653
16961696 e . preventDefault ( ) ;
16971697
16981698 const $btn = $ ( this ) ;
1699- const $wrap = $btn . closest ( '.setting-fields-wrap' ) ;
1699+ const $wrap = $ ( '.setting-fields-wrap' ) ;
17001700 const settingsId = $wrap . data ( 'setting-id' ) ;
17011701 const $result = $wrap . find ( '.setting-fields-export-import-result' ) ;
17021702 const $icon = $result . find ( '.setting-fields-export-import-icon' ) ;
17591759 const file = this . files [ 0 ] ;
17601760 if ( ! file ) return ;
17611761
1762- const $wrap = $ ( this ) . closest ( '.setting-fields-wrap' ) ;
1762+ const $wrap = $ ( '.setting-fields-wrap' ) ;
17631763 const settingsId = $wrap . data ( 'setting-id' ) ;
17641764 const $result = $wrap . find ( '.setting-fields-export-import-result' ) ;
17651765 const $icon = $result . find ( '.setting-fields-export-import-icon' ) ;
17661766 const $message = $result . find ( '.setting-fields-export-import-message' ) ;
1767- const $importBtn = $wrap . find ( '.setting-fields-import-btn' ) ;
1767+ const $importBtn = $ ( '.setting-fields-import-btn' ) ;
17681768
17691769 if ( ! file . name . endsWith ( '.json' ) ) {
17701770 $icon . attr ( 'class' , 'dashicons dashicons-warning setting-fields-export-import-icon' ) ;
You can’t perform that action at this time.
0 commit comments