staff, mno, clients, bug fixes

This commit is contained in:
Kwesi Banson
2023-05-08 10:13:03 +00:00
parent 903c1703b9
commit f2279bd13a
49 changed files with 3260 additions and 6511 deletions

View File

@@ -120,6 +120,7 @@
}
});
});
$('#financeForm').submit(function(evt){
evt.preventDefault();
var formData = new FormData($(this)[0]);
@@ -154,6 +155,18 @@
});
}
},
error: function(error){
//console.log(error);
//console.log("AJAX error in request: " + JSON.stringify(err, null, 2));
var output = $.parseJSON(error.responseText);
console.log(output.errors);
$('#financeNotifyArea').removeClass('hidden');
$('#financeNotifyArea').addClass('alert alert-danger');
$.each(output.errors, function (key, value) {
console.log(value[0]);
$('#financeNotifyArea').text(value[0]);
});
}
});
});
@@ -244,6 +257,4 @@
});
});
//
});