Skip to content

Commit

Permalink
Order Authorization / Capture Improvements, ref #761
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jun 15, 2017
1 parent b80adbf commit 3aa4fcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,14 @@ public function angelleye_paypal_for_woocommerce_order_action_callback($post) {

//Asking confirm for the capture
$('#angelleye_payment_submit_button').on('click', function () {
return confirm('Are you sure?');
var r = confirm('Are you sure?');
if (r == true) {
jQuery("#angelleye-pw-order-action").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})
return r;
} else {
jQuery("#angelleye-pw-order-action").unblock();
return r;
}
})

MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
Expand Down
7 changes: 0 additions & 7 deletions assets/js/angelleye-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,6 @@ jQuery(document).ready(function ($) {
}
}).change();



jQuery("#angelleye_payment_submit_button").click(function () {
jQuery("#angelleye-pw-order-action").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})
});


jQuery('#angelleye_payment_action').change(function(){

if(jQuery(this).val() == 'DoCapture') {
Expand Down

0 comments on commit 3aa4fcc

Please sign in to comment.