summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2011-10-05 16:10:11 +0100
committerTom Needham <needham.thomas@gmail.com>2011-10-05 16:10:11 +0100
commit86825ee3b52a7a00a367a9909a37dfb8ad90a9c0 (patch)
tree5d607feb4a22f70892c1cb9fde2e758b8b769c3a /apps/files_texteditor
parent15e5bd16ab8e812f0997171431a9d8e050df899e (diff)
downloadnextcloud-server-86825ee3b52a7a00a367a9909a37dfb8ad90a9c0.tar.gz
nextcloud-server-86825ee3b52a7a00a367a9909a37dfb8ad90a9c0.zip
Cleanup of code. Fixed breadcrumb removal issue
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r--apps/files_texteditor/js/editor.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index 4758a5948bd..f352e191c9d 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -168,7 +168,6 @@ function hideFileEditor(){
$('#editor_close').remove();
$('#editor_save').remove();
$('#editor').remove();
- $('.actions').prev().remove();
var editorhtml = '<div id="editor"></div>';
$('table').after(editorhtml);
$('.actions,#file_access_panel').fadeIn('slow');
@@ -177,11 +176,7 @@ function hideFileEditor(){
}
$(window).resize(function() {
- setEditorSize();
-});
-
-$(document).ready(function() {
- bindControlEvents();
+ setEditorSize();
});
$(document).ready(function(){
@@ -206,4 +201,6 @@ $(document).ready(function(){
showFileEditor(dir,file);
});
}
+ // Binds the file save and close editor events to the buttons
+ bindControlEvents();
});