| Server IP : 104.21.25.182 / Your IP : 216.73.217.110 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/analogwp-templates/assets/js/ |
Upload File : |
/* jQuery, angLocalKits */
( function( $, data ) {
$(
function() {
function processGlobalKitChange( e ) {
if ( e.preventDefault ) {
e.preventDefault();
}
const elSubmitBtn = $( e.target );
elSubmitBtn.val( data.processingBtnText );
elSubmitBtn.attr( 'disabled', 'disabled' );
setTimeout( function() {
const globalKit = $( '#global_kit' ).find( ':selected' ).val();
$.ajax(
{
url: ajaxurl, // This is a variable that WordPress has already defined for us.
type: 'POST',
async: false,
cache: false,
data: {
action: 'ang_global_kit',
ang_global_kit_nonce: data.nonce,
global_kit: globalKit,
},
}
).fail(
function() {
elSubmitBtn.val( data.initialBtnText );
elSubmitBtn.removeAttr( 'disabled' );
}
).done(
function() {
window.location.href = data.redirectURL;
}
);
}, 1 );
}
$( '#apply-kit' ).on( 'click', processGlobalKitChange );
function processImporterToggle( e ) {
if ( e.preventDefault ) {
e.preventDefault();
}
$( '#analog-import-template-area' ).toggle();
}
$( '#import-kit' ).on( 'click', processImporterToggle );
}
);
}( jQuery, angLocalKits ) );