PluginProbe
Search & Replace Everything by WPCode – Find and Replace Media, Text, Links, and More / 1.0.6
Search & Replace Everything by WPCode – Find and Replace Media, Text, Links, and More v1.0.6
trunk 1.0.0 1.0.1 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9
search-replace-wpcode / src / admin / modal.js

modal.js in Search & Replace Everything by WPCode – Find and Replace Media, Text, Links, and More 1.0.6, at src/admin/modal.js

26 lines 706 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery( function ( $ ) {
2 $( '.wsrw-close-modal, .wsrw-modal-overlay' ).on(
3 'click',
4 function () {
5 const $body = $( 'body' );
6 // Let's disable closing the modal if a specific class is used.
7 if ( $body.hasClass( 'wsrw-no-close' ) ) {
8 return;
9 }
10 $body.removeClass( 'wsrw-show-modal' );
11
12 $(document).trigger( 'wsrw-modal-closed' );
13 }
14 );
15 $( '.wsrw-search-replace-history .wsrw-close-modal,.wsrw-search-replace-history .wsrw-modal-overlay' ).on(
16 'click',
17 function () {
18
19 $( '.wsrw-modal' ).hide();
20 $( '.wsrw-modal-overlay' ).hide();
21 $( '.wsrw-undo-operation' ).prop( 'disabled', false );
22 $( '#wsrw-results-table' ).find('tr:not(:first-child)').remove();
23 }
24 );
25 } );
26