diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-28 19:45:16 +0300 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-28 19:45:16 +0300 |
commit | 597ed7c5f2109ebb06a804ee7dd61b5d2f730c76 (patch) | |
tree | b3ead3cb23b5bd1c511f312cc63cbe372690de16 /js | |
parent | c454f1097b85a5d730e6310ab958aafc47c09a1a (diff) |
Close the texteditor when we fail to load the file
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/editor.js b/js/editor.js index 97fbc02..1b0ba1b 100644 --- a/js/editor.js +++ b/js/editor.js @@ -299,6 +299,7 @@ var Files_Texteditor = { function(message){ // Oh dear OC.dialogs.alert(message, t('files_texteditor', 'An error occurred!')); + _self.closeEditor(); }); }, |