cancel offers
This commit is contained in:
@@ -47,6 +47,23 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
function zeroOffer(link_id) {
|
||||
if (confirm("Are you sure you want to cancel and zero this this offer?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
$('#btu' + link_id).html('Processing...');
|
||||
$('#acc' + link_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/bkotransaction/zero_refund_offer?link_id=" + link_id
|
||||
}).done(function (data) {
|
||||
$('#btu' + link_id).html(data);
|
||||
// document.offer_individual.rec_email.value = '';
|
||||
$('#acc' + link_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user