From 93ed844015469acf658f3aef5e83c9d4a428a3ec Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Tue, 4 Oct 2011 20:20:08 +0100 Subject: [PATCH] Control events are now bound on the page load rather than everytime the editor is loaded. --- apps/files_texteditor/js/editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5