!(function (t) { wp.customize.controlConstructor["bloglo-button"] = wp.customize.Control.extend({ ready: function () { "use strict"; this.container.on("click", ".button", function (e) { var a = t(this), o = a.data("ajax-action"); if (o) { e.preventDefault(), a.siblings(".spinner").addClass("activated"); var n = { _ajax_nonce: bloglo_customizer_localized.wpnonce, action: o, }; t.post(bloglo_customizer_localized.ajaxurl, n, function (t) { t.success && (a.siblings(".spinner").removeClass("activated"), void 0 !== t.data.reload && t.data.reload && location.reload()); }); } }); }, }); })(jQuery);