From: Tom Needham Date: Tue, 4 Oct 2011 19:20:08 +0000 (+0100) Subject: Control events are now bound on the page load rather than everytime the editor is... X-Git-Tag: v3.0~110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93ed844015469acf658f3aef5e83c9d4a428a3ec;p=nextcloud-server.git Control events are now bound on the page load rather than everytime the editor is loaded. --- diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 0e3e9776e11..8a23062748a 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -134,7 +134,6 @@ function showFileEditor(dir,filename){ window.aceEditor.setTheme("ace/theme/clouds"); }); }); - bindControlEvents(); // End success } // End ajax @@ -163,4 +162,8 @@ function hideFileEditor(){ $(window).resize(function() { setEditorSize(); +}); + +$(document).ready(function() { + bindControlEvents(); }); \ No newline at end of file