Merge pull request #23762 from nextcloud/catch-dialog-close-error
This commit is contained in:
commit
97bd0ffae1
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
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue