Files
rohnenedre/wp-content/plugins/wpclef/assets/dist/js/badge.min.js

4 lines
739 B
JavaScript

/*! Clef for WordPress - v2.3.0
* http://getclef.com
* Licensed GPLv2+ */
(function(n){return n(document).ready(function(){var t,e,i;return t=n(".clef-badge-prompt"),e={action:"clef_badge_prompt"},i=!1,t.find(".add-badge").click(function(a){var r;return a.preventDefault(),i?void 0:(i=!0,r={},t.find("input").each(function(){return r[n(this).attr("name")]=n(this).val()}),r.enable="badge",n.extend(r,e),t.slideUp(),n.post(ajaxurl,r,function(){},"json"))}),t.find(".no-badge, .dismiss").click(function(a){var r;return a.preventDefault(),i?void 0:(i=!0,r={},t.find("input").each(function(){return r[n(this).attr("name")]=n(this).val()}),r.disable=!0,n.extend(r,e),n.post(ajaxurl,r,function(){},"json"),t.slideUp())})})}).call(this,jQuery);