aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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');