diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-08 15:54:59 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-08 15:55:29 +0400 |
commit | 7a94937509e9af08690ce289282470ea186adf40 (patch) | |
tree | 449dc143a29a85e491c6a9e33d393d3bdaae6ff4 /js | |
parent | 5ef0941a0250cee708e14404722a5e87bb9e7afe (diff) |
Fixed "unsaved changes" message
Fixes #1400
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/editor.js b/js/editor.js index 81e1492..1fa4961 100644 --- a/js/editor.js +++ b/js/editor.js @@ -273,7 +273,7 @@ function hideFileEditor() { // and also the breadcrumb window.FileList.reload(); } - if ($('#editor_container').attr('data-edited') == 'true') { + if ($('#editor').attr('data-edited') == 'true') { // Hide, not remove $('#editorcontrols,#editor_container').hide(); // Fade out editor @@ -297,7 +297,7 @@ function hideFileEditor() { // Reopens the last document function reopenEditor() { - FileList.setViewerMode(false); + FileList.setViewerMode(true); $('#controls .last').not('#breadcrumb_file').removeClass('last'); $('#editor_container').show(); $('#editorcontrols').show(); |