MERGE_TEST_FORM_VALIDATION&MEDIBUDDY&LIVE_ISSUES
This commit is contained in:
commit
e1272226b7
@ -476,7 +476,14 @@ $('#uploadForm').submit(function() {
|
||||
console.error("Request failed:", status, error);
|
||||
toastr.error('Something went wrong! Try later', 'Error');
|
||||
$('#uploadForm')[0].reset();
|
||||
window.location.reload(true);
|
||||
},
|
||||
complete: function() {
|
||||
|
||||
console.log("Request finished. Reloading in 2 seconds...");
|
||||
|
||||
setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 2000);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user