File "admin-vc.min.js"

Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/themes/goya/assets/js/admin/admin-vc.min.js
File size: 1.24 KB
MIME-type: text/plain
Charset: utf-8

jQuery(document).ready(function(l){var c=l(".et_templates_container"),o=l(".et_templates_cat li");l(".et_template_import").on("click",function(e){var t=l(this);return parentEl=t.closest(".et_template"),l.ajax({method:"POST",url:window.ajaxurl,data:{action:"goya_load_vc_template",template_unique_id:t.data("et-id")},beforeSend:function(){parentEl.addClass("et-loader")},error:function(e){parentEl.removeClass("et-loader")},success:function(t){_.each(vc.filters.templates,function(e){t=e(t)});var e="";l("body").hasClass("compose-mode")?(e=vc.builder.parse({},t),_.delay(function(){_.each(e,function(e){vc.builder.create(e)}),vc.builder.render()})):(e=vc.storage.parseContent({},t),_.each(e,function(e){vc.shortcodes.create(e)})),vc.closeActivePanel(),parentEl.removeClass("et-loader")}}),!1}),l(".vc_templates-button").one("click",function(){var n=0;o.each(function(){var e=l(this),t=e.attr("data-sort"),a=l(".et_template."+t,c).length;n+=a,e.find(".count").html(a),o.filter('[data-sort="all"]').find(".count").html(n)})}),o.on("click",function(e){var t=l(this),a=t.attr("data-sort");return l(".et_templates_cat li").removeClass("active"),t.addClass("active"),l(".et_template",c).removeClass("hidden"),"all"!==a&&l(".et_template:not(."+a+")").addClass("hidden"),!1})});