Set spinner to the table

This commit is contained in:
Urban Rotnik 2020-01-21 10:26:24 +01:00
parent ed77d95abd
commit 74f38af54f

View file

@ -38,13 +38,13 @@ var RepositoryDatatableRowEditor = (function() {
if (!valid) return false;
animateSpinner($table, true);
// DirectUpload here
let uploadPromise = Asset.uploadFiles($files, directUrl);
// Submission here
uploadPromise
.then(function() {
animateSpinner(null, true);
$form.submit();
return false;
}).catch((reason) => {