app/assets/javascripts/caboose/admin_edit_order.js in caboose-cms-0.5.88 vs app/assets/javascripts/caboose/admin_edit_order.js in caboose-cms-0.5.89
- old
+ new
@@ -634,11 +634,11 @@
$('#message').empty().append(p);
return;
}
$('#message').html("<p class='loading'>Voiding...</p>");
$.ajax({
- url: '/admin/orders/' + order_id + '/void',
+ url: '/admin/orders/' + that.order.id + '/void',
success: function(resp) {
if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
if (resp.success) $('#message').html("<p class='note success'>" + resp.success + "</p>");
if (resp.refresh) window.location.reload(true);
}
@@ -658,10 +658,10 @@
$('#message').empty().append(p);
return;
}
$('#message').html("<p class='loading'>Capturing funds...</p>");
$.ajax({
- url: '/admin/orders/' + order_id + '/capture',
+ url: '/admin/orders/' + that.order.id + '/capture',
success: function(resp) {
if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
if (resp.success) $('#message').html("<p class='note success'>" + resp.success + "</p>");
if (resp.refresh) window.location.reload(true);
}
\ No newline at end of file