Finished up #68 and #62

This commit is contained in:
tidusjar 2016-03-25 16:54:18 +00:00
commit 3d2c787062
11 changed files with 161 additions and 17 deletions

View file

@ -214,6 +214,12 @@ $(document).on("click", ".approve", function (e) {
var buttonId = e.target.id;
var $form = $('#approve' + buttonId);
if ($('#' + buttonId).text === "Loading...") {
return;
}
loadingButton(buttonId, "success");
$.ajax({
type: $form.prop('method'),
url: $form.prop('action'),