Correctly handle serialization of newly created stock

This commit is contained in:
Oliver committed 2021-11-04 23:18:59 +11:00
1 parent 3be4acf3ef
commit b41dbba2b0
2 files changed
+26 -1

No files matched your search

@@ -115,6 +115,10 @@ function canDelete(OPTIONS) {
*/
function getApiEndpointOptions(url, callback) {
if (!url) {
return;
}
// Return the ajax request object
$.ajax({
url: url,
@@ -727,6 +731,8 @@ function submitFormData(fields, options) {
break;
default:
$(options.modal).modal('hide');
console.log(`upload error at ${options.url}`);
showApiError(xhr, options.url);
break;
}