Merge pull request #23762 from nextcloud/catch-dialog-close-error

This commit is contained in:
John Molakvoæ 2020-10-29 08:43:07 +01:00 committed by GitHub
commit 97bd0ffae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -930,7 +930,11 @@ const Dialogs = {
closeButton: null, closeButton: null,
close: function() { close: function() {
self._fileexistsshown = false self._fileexistsshown = false
try {
$(this).ocdialog('destroy').remove() $(this).ocdialog('destroy').remove()
} catch (e) {
// ignore
}
} }
}) })