Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save viktorasbuivydas/61a65e974d30e1080be63886935b6890 to your computer and use it in GitHub Desktop.
Save viktorasbuivydas/61a65e974d30e1080be63886935b6890 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