summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2011-11-07 22:45:26 +0000
committerTom Needham <needham.thomas@gmail.com>2011-11-07 22:45:26 +0000
commitc33884779d4e7fbfce33ee30fbe46f3df939a402 (patch)
tree0372e5f6b3135fe142dd21b43e738fc0b46a9bf5 /apps/files_texteditor
parent059ab889bd1a7eaf399f69405e0151e34e2e760a (diff)
downloadnextcloud-server-c33884779d4e7fbfce33ee30fbe46f3df939a402.tar.gz
nextcloud-server-c33884779d4e7fbfce33ee30fbe46f3df939a402.zip
Fixed problem closing the editor.
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r--apps/files_texteditor/js/editor.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index c26139a4eb2..fd93ac5a7a8 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -73,7 +73,9 @@ function updateSessionFileHash(path){
if(jsondata.status=='failure'){
alert('Failed to update session file hash.');
}
- }, "json");}
+ },
+ "json");
+}
function doFileSave(){
if(is_editor_shown){
@@ -166,7 +168,7 @@ function showFileEditor(dir,filename){
}
function hideFileEditor(){
- if(!is_editor_shown){
+ if(is_editor_shown){
$('#editor').attr('editorshown','false');
// Fade out controls
$('#editor_close').fadeOut('slow');