updated plugin GP Premium version 1.12.2

This commit is contained in:
2020-10-20 15:16:06 +00:00
committed by Gitium
parent 7b5257d924
commit dcc1a6ca18
57 changed files with 1566 additions and 1660 deletions

View File

@ -910,4 +910,20 @@ jQuery( document ).ready( function($) {
$( 'body' ).removeClass( 'site-import-content-exists' );
$( 'body' ).removeClass( 'site-import-data-exists' );
} );
$( '.refresh-sites a:first-child' ).on( 'click', function( e ) {
var $thisButton = $( this ); // eslint-disable-line no-var
e.preventDefault();
$thisButton.removeClass( 'success' ).addClass( 'loading' );
$.post( ajaxurl, {
action: 'generate_sites_refresh_sites',
_nonce: $thisButton.data( 'nonce' ),
} ).done( function() {
$thisButton.removeClass( 'loading' ).addClass( 'success' );
$thisButton.hide();
$thisButton.next( '.button' ).show();
} );
} );
} );