first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
jQuery( document ).ready( function() {
var security = jQuery( '.ps-security' ).val();
migrateLogs();
function migrateLogs() {
jQuery.ajax({
method: 'POST',
url: ajaxurl,
data: {
action: 'ps-migrate-logs',
security: security
},
success: function( response ) {
var max = jQuery( '#ps-migration-progress' ).attr( 'max' );
var migrated = response.data.migrated;
jQuery( '#ps-migration-progress' ).val( migrated );
jQuery( '#ps-progress' ).html( `${migrated}/ ${max}` );
if( max == migrated ) {
jQuery( '#ps-migration-progress' ).val( max );
jQuery( '.ps-migration-box' ).slideUp();
location.reload()
}
else if( response.data.migrated ) {
jQuery('#ps-email-log').DataTable().ajax.reload();
migrateLogs();
}
}
});
}
} );