summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2011-10-04 20:20:08 +0100
committerTom Needham <needham.thomas@gmail.com>2011-10-04 20:20:08 +0100
commit93ed844015469acf658f3aef5e83c9d4a428a3ec (patch)
tree620422c6d613afe333e5c83732da9b7d9d69e928
parent39d42fc62b4dd85cd959ea94b85cd8aff82262be (diff)
downloadnextcloud-server-93ed844015469acf658f3aef5e83c9d4a428a3ec.tar.gz
nextcloud-server-93ed844015469acf658f3aef5e83c9d4a428a3ec.zip
Control events are now bound on the page load rather than everytime the editor is loaded.
-rw-r--r--apps/files_texteditor/js/editor.js5
1 files changed, 4 insertions, 1 deletions
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