Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/admin/assets/js/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/auxin-pro-tools/admin/assets/js/vc-templates.js |
( function($) {
$('.auxin-vc-template-download').on( 'click', function(e) {
var $this = $(this),
data = {
action : 'auxin_vc_template_download',
n : $this.data('n'),
demo : $this.data('template-id')
};
$.post( ajaxurl, data, function( res ) {
if ( res ) {
// Insert data to the editor
var models;
_.each(vc.filters.templates, function(callback) {
res = callback(res)
}), models = vc.storage.parseContent({}, res), _.each(models, function(model) {
vc.shortcodes.create(model)
}), vc.closeActivePanel()
}
});
});
})(jQuery);