]> source.dussan.org Git - nextcloud-server.git/commitdiff
Control events are now bound on the page load rather than everytime the editor is...
authorTom Needham <needham.thomas@gmail.com>
Tue, 4 Oct 2011 19:20:08 +0000 (20:20 +0100)
committerTom Needham <needham.thomas@gmail.com>
Tue, 4 Oct 2011 19:20:08 +0000 (20:20 +0100)
apps/files_texteditor/js/editor.js

index 0e3e9776e1185c4870333a35516c23da66552f62..8a23062748a335eef750575da90e165ac1c4234b 100644 (file)
@@ -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