| Server IP : 121.121.20.254 / Your IP : 216.73.217.18 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/updraftplus/js/ |
Upload File : |
/**
* Deactivation Dialog Script for UpdraftPlus Plugin
* This script customizes the deactivation dialog by adding specific classes to buttons
*/
(function($) {
$(document).on('dialogopen', '#updraftplus-deinstall-dialog', function() {
var $dialog = $(this);
$('body').addClass('udp-no-scroll');
var btn = $('.updraftplus-ui-deinstall-dialog .ui-dialog-buttonset button:first-child');
$dialog.on('click', '.udp-toggle-container', function() {
btn.text($(this).find('input:checked').length ? upraftplusdialog.remove : upraftplusdialog.deactivate);
});
// Show spinner on click.
btn[0].addEventListener('click', function() {
if (btn.hasClass('udp-loading')) return;
btn.addClass('udp-loading').html('<span class="udp-spinner" aria-hidden="true"></span>' + btn.text());
$dialog.dialog('option', 'beforeClose', function() {
return false;
});
}, true);
$dialog.on('dialogclose', function() {
$('body').removeClass('udp-no-scroll');
});
});
})(jQuery);