芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/wp-content/themes/dexolix/inc/admin/config/js/dashboard.min.js
!function(t){t(".teconce-skip").on("click",function(){t(".is-active").addClass("finished");var a=t(t(this).attr("href"));setTimeout(function(){t(".is-active").removeClass("is-active"),a.addClass("is-active")},400)}),t(".teconce-finish").on("click",function(){t(".is-active").removeClass("is-active"),setTimeout(function(){t(".dashboard-grid").removeClass("getting-started"),t(".dashboard-grid").addClass("animate-dashboard")},200);t.ajax({url:dashboard_object.AJAX_URL,data:{action:"tecon_finish_dashboard"},method:"POST"}).done(function(a){})});var a="fu";a+="nc",localStorage.removeItem(a),sessionStorage.removeItem(a),t(".tecon-theme-deactivate").on("click",function(){var a=t(this).attr("data-pk");window.confirm("Are you sure that you want to deactivate the theme?")&&t.ajax({url:dashboard_object.AJAX_URL,data:{action:"tecon_deactivate_theme",pk:a},method:"POST"}).done(function(a){a=JSON.parse(a);a.result?(t(".svg-dashboard-done").removeClass("tecon-start-animation").addClass("tecon-start-animation"),t(".tecon-verify-status-text").html(a.message),t(".tecon-theme-deactivate").hide()):(t(".dashboard-done").hide(),t(".tecon-verify-status-text").html(a.message))}).fail(function(a){})}),setTimeout(function(){t(".svg-dashboard-done").addClass("tecon-start-animation")},1200)}(jQuery); //# sourceMappingURL=dashboard.min.js.map (function($) { $('#create-child-theme-button').on('click', function() { var button = $(this); var status = $('#child-theme-status'); button.prop('disabled', true).text('Creating...'); status.text(''); $.post(ajaxurl, { action: 'teconce_create_child_theme', security: dashboard_object.create_child_theme_nonce // Pass nonce here }, function(response) { if (response.success) { status.text('Child theme created and activated successfully!'); } else { status.text('Error creating child theme. Please check the logs.'); } button.prop('disabled', false).text('Create Child Theme'); }); }); })(jQuery);