芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/elementor-extras/lib/wp-package-updater/js/main.min.js
jQuery(document).ready(function(c){var e=c(".appearance_page_theme-license .wrap-license label");e.css("display","block"),e.css("margin-bottom","10px"),c('.appearance_page_theme-license .wrap-license input[type="text"]').css("width","50%"),c(".appearance_page_theme-license .postbox").show(),c(".wrap-license .activate-license").on("click",function(e){e.preventDefault();var a=c(this).parent().parent(),n={nonce:a.data("nonce"),license_key:a.find(".license").val(),package_slug:a.data("package_slug"),action:WP_PackageUpdater.action_prefix+"_activate_license"};c.ajax({url:WP_PackageUpdater.ajax_url,data:n,type:"POST",success:function(e){if(e.success)a.find(".current-license").html(a.find(".license").val()),a.find(".current-license-error").hide(),a.find(".license-message").show(),c(".license-error-"+a.data("package_slug")+".notice").hide();else{var n=a.find(".current-license-error");n.html(e.data[0].message+"
"),n.show(),a.find(".license-message").show()}""===a.find(".current-license").html()?(a.find(".current-license-label").hide(),a.find(".current-license").hide()):(a.find(".current-license-label").show(),a.find(".current-license").show())}})}),c(".wrap-license .deactivate-license").on("click",function(e){e.preventDefault();var a=c(this).parent().parent(),n={nonce:a.data("nonce"),license_key:a.find(".license").val(),package_slug:a.data("package_slug"),action:WP_PackageUpdater.action_prefix+"_deactivate_license"};c.ajax({url:WP_PackageUpdater.ajax_url,data:n,type:"POST",success:function(e){if(e.success)a.find(".current-license").html(""),a.find(".current-license-error").hide(),a.find(".license-message").hide();else{var n=a.find(".current-license-error");n.html(e.data[0].message+"
"),n.show(),a.find(".license-message").show()}""===a.find(".current-license").html()?(a.find(".current-license-label").hide(),a.find(".current-license").hide()):(a.find(".current-license-label").show(),a.find(".current-license").show())}})})});