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:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-30 16:01:27 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-30 16:01:27 +0300
commitc3bfe18e0018f49297a0236d8a26f37f95491cf9 (patch)
tree7b806326b7d5ba0a21466ecc9bfa04a3292d384f /js
parent41d7a584862fa5b7f9ec74bad3012ad954423df8 (diff)
parent597ed7c5f2109ebb06a804ee7dd61b5d2f730c76 (diff)
Merge pull request #117 from owncloud/on-fail-close
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 01ccd5e..ef2d107 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();
});
},