Skip to content

Instantly share code, notes, and snippets.

@CmdrMahesh
Last active March 16, 2024 18:45
Show Gist options
  • Save CmdrMahesh/3b2b1c7528cbca4f5464db5b1357d845 to your computer and use it in GitHub Desktop.
Save CmdrMahesh/3b2b1c7528cbca4f5464db5b1357d845 to your computer and use it in GitHub Desktop.
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