File "admin.min.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/swedbank-pay-checkout/assets/js/admin.min.js
File size: 1.54 KB
MIME-type: text/plain
Charset: utf-8
jQuery(document).ready((function(a){a(document).on("click","#swedbank_pay_capture",(function(t){t.preventDefault();var e=a(this).data("nonce"),n=a(this).data("order-id"),d=a(this);a.ajax({url:SwedbankPay_Admin.ajax_url,type:"POST",data:{action:"swedbank_pay_capture",nonce:e,order_id:n},beforeSend:function(){d.data("text",d.html()),d.html(SwedbankPay_Admin.text_wait),d.prop("disabled",!0)},success:function(a){if(d.html(d.data("text")),d.prop("disabled",!1),!a.success)return alert(a.data),!1;window.location.href=location.href}})})),a(document).on("click","#swedbank_pay_cancel",(function(t){t.preventDefault();var e=a(this).data("nonce"),n=a(this).data("order-id"),d=a(this);a.ajax({url:SwedbankPay_Admin.ajax_url,type:"POST",data:{action:"swedbank_pay_cancel",nonce:e,order_id:n},beforeSend:function(){d.data("text",d.html()),d.html(SwedbankPay_Admin.text_wait),d.prop("disabled",!0)},success:function(a){if(d.html(d.data("text")),d.prop("disabled",!1),!a.success)return alert(a.data),!1;window.location.href=location.href}})})),a(document).on("click","#swedbank_pay_refund",(function(t){t.preventDefault();var e=a(this).data("nonce"),n=a(this).data("order-id"),d=a(this);a.ajax({url:SwedbankPay_Admin.ajax_url,type:"POST",data:{action:"swedbank_pay_refund",nonce:e,order_id:n},beforeSend:function(){d.data("text",d.html()),d.html(SwedbankPay_Admin.text_wait),d.prop("disabled",!0)},success:function(a){if(d.html(d.data("text")),d.prop("disabled",!1),!a.success)return alert(a.data),!1;window.location.href=location.href}})}))}));
//# sourceMappingURL=admin.min.js.map