diff --git a/apps/dashboard/app/javascript/files/file_ops.js b/apps/dashboard/app/javascript/files/file_ops.js index 4b8564198..d80999c7e 100644 --- a/apps/dashboard/app/javascript/files/file_ops.js +++ b/apps/dashboard/app/javascript/files/file_ops.js @@ -525,7 +525,7 @@ class FileOps { .then(() => this.doneLoading()) .catch(e => { this.doneLoading(); - this.alertError('Error occurred when attempting to ' + summary, e.message) + this.alertError('Error occurred when attempting to ' + summary, e.message); }) } @@ -653,7 +653,7 @@ class FileOps { $(CONTENTID).trigger(DATATABLE_EVENTNAME.reloadTable, eventData); } - showSwalLoading (message) { + showSwalLoading(message) { const eventData = { 'message': message, }; diff --git a/apps/dashboard/app/javascript/files/sweet_alert.js b/apps/dashboard/app/javascript/files/sweet_alert.js index 13eac0efd..8424b59d6 100644 --- a/apps/dashboard/app/javascript/files/sweet_alert.js +++ b/apps/dashboard/app/javascript/files/sweet_alert.js @@ -82,6 +82,7 @@ class SweetAlert { title: title, allowOutsideClick: false, showConfirmButton: false, + returnFocus: false, willOpen: () => { Swal.showLoading() } }); }