need to edit origami

This commit is contained in:
Yan
2017-10-31 10:38:19 +06:30
parent 1189761e49
commit 041f9b9fe2

View File

@@ -583,8 +583,18 @@
confirmButtonColor: "#DD6B55", confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, void it!", confirmButtonText: "Yes, void it!",
closeOnConfirm: false closeOnConfirm: false
}, function () { }, function (isConfirm) {
if (isConfirm) {
var sale_id = "<%= @obj_sale.sale_id rescue "" %>"
var ajax_url = "/origami/sale/" + sale_id + '/void';
$.ajax({
type: 'POST',
url: ajax_url,
success: function () {
window.location.href = '/origami/'; window.location.href = '/origami/';
}
});
}
}); });
}); });