Control events are now bound on the page load rather than everytime the editor is loaded.

This commit is contained in:
Tom Needham 2011-10-04 20:20:08 +01:00
parent 39d42fc62b
commit 93ed844015

View 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();
});