Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-28 19:45:16 +0300
committerRobin Appelman <icewind@owncloud.com>2015-09-28 19:45:16 +0300
commit597ed7c5f2109ebb06a804ee7dd61b5d2f730c76 (patch)
treeb3ead3cb23b5bd1c511f312cc63cbe372690de16 /js
parentc454f1097b85a5d730e6310ab958aafc47c09a1a (diff)
Close the texteditor when we fail to load the file
Diffstat (limited to 'js')
-rw-r--r--js/editor.js1
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();
});
},