Forked from CmdrMahesh/All in one WP-Migration - Import Script
Created
March 16, 2024 18:45
-
-
Save viktorasbuivydas/61a65e974d30e1080be63886935b6890 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) { | |
e.preventDefault(); | |
var modelimport = new Ai1wm.Import(); | |
var storage = Ai1wm.Util.random(12); | |
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({ name: 'storage', value: storage }).concat({ name: 'archive', value: jQuery(this).data('archive') }); | |
// Set global params | |
modelimport.setParams(options); | |
// Start import | |
modelimport.start(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment