From: Tom Needham Date: Wed, 5 Oct 2011 15:10:11 +0000 (+0100) Subject: Cleanup of code. Fixed breadcrumb removal issue X-Git-Tag: v3.0~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86825ee3b52a7a00a367a9909a37dfb8ad90a9c0;p=nextcloud-server.git Cleanup of code. Fixed breadcrumb removal issue --- 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 = '
'; $('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(); });