芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/fluentform/assets/js/admin_notices.js
({initNagButton:function(){jQuery(".ff_nag_cross").on("click",(function(t){t.preventDefault();var n=jQuery(this).attr("data-notice_name"),e=jQuery(this).attr("data-notice_type");jQuery("#ff_notice_"+n).remove();var o=FluentFormsGlobal.$rest.route("noticeAction");FluentFormsGlobal.$rest.post(o,{notice_name:n,action_type:e}).then((function(t){console.log(t)})).catch((function(t){console.log(t)}))}))},initTrackYes:function(){jQuery(".ff_track_yes").on("click",(function(t){t.preventDefault();var n=jQuery(this).attr("data-notice_name"),e=0;jQuery("#ff-optin-send-email").attr("checked")&&(e=1),jQuery("#ff_notice_"+n).remove(),FluentFormsGlobal.$post({action:"fluentform_notice_action_track_yes",notice_name:n,email_enabled:e}).then((function(t){console.log(t)})).fail((function(t){console.log(t)}))}))},initSmtpInstall:function(){var t=jQuery(".intstall_fluentsmtp");t.on("click",(function(n){var e=this;n.preventDefault(),jQuery(this).attr("disabled",!0),jQuery(".ff_addon_installing").show(),FluentFormsGlobal.$post({action:"fluentform_install_fluentsmtp"}).then((function(n){t.text("Please wait...."),n.is_installed&&n.config_url?window.location.href=n.config_url:n.is_installed?location.reload():alert("something is wrong when installing the plugin. Please install FluentSMTP manually."),console.log(n)})).fail((function(t){var n="something is wrong when installing the plugin. Please install FluentSMTP manually.";t.responseJSON&&t.responseJSON.message&&(n=t.responseJSON.message),alert(n),console.log(t)})).always((function(){jQuery(e).attr("disabled",!1),jQuery(".ff_addon_installing").hide()}))}))},handleReviewQuery:function(){var t=jQuery(".ff_review_now");t.on("click",(function(n){n.preventDefault(),jQuery(this).attr("disabled",!0);var e=jQuery(this).attr("data-notice_name"),o=FluentFormsGlobal.$rest.route("noticeAction");FluentFormsGlobal.$rest.post(o,{notice_name:e}).then((function(n){n&&(t.html("Thank You! We Really appreciate it.").fadeIn(),setTimeout((function(){var n=t.attr("href");jQuery("#ff_notice_"+e).remove(),window.open(n,"_blank")}),1e3))})).catch((function(t){console.log(t)}))}))},initReady:function(){var t=this;jQuery(document).ready((function(){t.initNagButton(),t.initTrackYes(),t.initSmtpInstall(),t.handleReviewQuery()}))}}).initReady();