diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js')
-rw-r--r-- | plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js b/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js index d9f7a7f8..43689378 100644 --- a/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js +++ b/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js @@ -1,3 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/* global ajaxurl */ -jQuery(function(e){e(document).on("click","#jetpack-check-feedback-spam:not(.button-disabled)",function(n){n.preventDefault(),e("#jetpack-check-feedback-spam:not(.button-disabled)").addClass("button-disabled"),e(".jetpack-check-feedback-spam-spinner").addClass("spinner").show(),function n(c,t){e.post(ajaxurl,{action:"grunion_recheck_queue",offset:c,limit:t},function(e){e.processed<t?window.location.reload():n(c+t,t)})}(0,100)})});
\ No newline at end of file +jQuery((function(a){if("undefined"!=typeof jetpack_empty_spam_button_parameters){var t=a("<div/>").addClass("jetpack-empty-spam-container"),e=a("<a />").addClass("button-secondary").addClass("jetpack-empty-spam").attr("href","#").attr("data-progress-label",jetpack_empty_spam_button_parameters.progress_label).attr("data-success-url",jetpack_empty_spam_button_parameters.success_url).attr("data-failure-url",jetpack_empty_spam_button_parameters.failure_url).attr("data-spam-feedbacks-count",jetpack_empty_spam_button_parameters.spam_count).attr("data-nonce",jetpack_empty_spam_button_parameters.nonce).text(jetpack_empty_spam_button_parameters.label);t.append(e);var s=a("<span />").addClass("jetpack-empty-spam-spinner");t.append(s),a(".tablenav.top .actions, .tablenav.bottom .actions").not(".bulkactions").append(t)}function n(t,e){var s=a("#jetpack-check-feedback-spam").data("nonce-name"),p=a("#"+s).attr("value"),c=a("#jetpack-check-feedback-spam").data("failure-url"),d={action:"grunion_recheck_queue",offset:t,limit:e};d[s]=p,a.post(ajaxurl,d).fail((function(a){window.location.href=c})).done((function(a){a.processed<e?window.location.reload():n(t+e,e)}))}a(document).on("click","#jetpack-check-feedback-spam:not(.button-disabled)",(function(t){t.preventDefault(),a("#jetpack-check-feedback-spam:not(.button-disabled)").addClass("button-disabled"),a(".jetpack-check-feedback-spam-spinner").addClass("spinner").show(),n(0,100)}));var p=0,c=0;function d(){var t=a(".jetpack-empty-spam"),e=t.data("nonce"),s=Math.round(c/p*1e3)/10;t.text(t.data("progress-label").replace("%1$s",s)),a.post(ajaxurl,{action:"jetpack_delete_spam_feedbacks",nonce:e}).fail((function(a){window.location.href=t.data("failure-url")})).done((function(a){c+=a.data.counts.deleted,a.data.counts.deleted<a.data.counts.limit?window.location.href=t.data("success-url"):d()}))}a(document).on("click",".jetpack-empty-spam",(function(t){t.preventDefault(),a(this).hasClass("button-disabled")||(a(".jetpack-empty-spam").addClass("button-disabled").addClass("emptying"),a(".jetpack-empty-spam-spinner").addClass("spinner").addClass("is-active"),a(".jetpack-empty-spam").text(a(".jetpack-empty-spam").data("progress-label").replace("%1$s","0")),p=parseInt(a(this).data("spam-feedbacks-count"),10),d())}))}));
\ No newline at end of file |