| Server IP : 47.82.179.145 / Your IP : 216.73.217.129 Web Server : nginx/1.26.3 System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.3.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/scuipturepactory.com/wp-content/plugins.off/cartflows/admin-core/assets/js/ |
Upload File : |
( function ( $ ) {
const wcf_back_step_button = function () {
if ( 'cartflows_step' === typenow ) {
const step_back_button = $( '#wcf-gutenberg-back-step-button' );
if ( step_back_button.length > 0 ) {
$( '#editor' )
.find( '.edit-post-header__toolbar' )
.append( step_back_button.html() );
}
}
};
// Copy the log to clipboard.
const wcf_copy_the_log = function () {
$( '.wcf-log--copy' ).on( 'click', function ( e ) {
e.preventDefault();
const $this = $( this );
const copy_boundry = document.createRange();
copy_boundry.selectNode(
document.getElementById( 'wcf-log--text' )
);
ownerDocument.defaultView.getSelection().removeAllRanges();
ownerDocument.defaultView.getSelection().addRange( copy_boundry );
document.execCommand( 'copy' );
ownerDocument.defaultView.getSelection().removeAllRanges();
$this.text( $this.attr( 'data-success' ) );
setTimeout( function () {
$this.text( $this.attr( 'data-default' ) );
}, 500 );
} );
};
$( document ).on( 'ready', function () {
setTimeout( function () {
wcf_back_step_button();
}, 300 );
// Copy the log to clipboard.
wcf_copy_the_log();
} );
function installSuccess( event, args ) {
event.preventDefault();
const plugin_slug = args.slug;
activatePlugin( plugin_slug );
}
function activatePlugin( plugin_slug ) {
const plugin_init = plugin_slug + '/' + plugin_slug + '.php';
$.ajax( {
type: 'POST',
dataType: 'json',
url: cartflows_admin.ajax_url,
data: {
action: 'cartflows_activate_plugin',
security: cartflows_admin.activate_plugin_nonce,
init: plugin_init,
},
success( response ) {
if ( response.data && response.data.success ) {
if ( 'woocommerce-payments' === plugin_slug ) {
window.location.replace(
cartflows_admin.admin_base_url +
`admin.php?page=wc-admin&path=/payments/connect`
);
} else {
window.location.reload();
}
}
},
error() {
$( 'body' ).css( 'cursor', 'default' );
alert( 'Something went wrong!' );
},
} );
}
$( document ).on( 'wp-plugin-install-success', installSuccess );
} )( jQuery );