Skip to content
Snippets Groups Projects
Commit 7e344527 authored by Brice Maron's avatar Brice Maron
Browse files

Little trick to avoid editor loading twice on double click

parent da8d32ae
No related branches found
No related tags found
No related merge requests found
......@@ -73,11 +73,7 @@ function bindControlEvents(){
function editorIsShown(){
// Not working as intended. Always returns true.
if(window.aceEditor){
return true;
} else {
return false;
}
return is_editor_shown;
}
function updateSessionFileHash(path){
......@@ -174,6 +170,7 @@ function showFileEditor(dir,filename){
}
// End ajax
});
is_editor_shown = true;
}
}
......@@ -194,12 +191,13 @@ function hideFileEditor(){
$('.actions,#file_access_panel').fadeIn('slow');
$('table').fadeIn('slow');
});
is_editor_shown = false;
}
$(window).resize(function() {
setEditorSize();
});
var is_editor_shown = false;
$(document).ready(function(){
if(typeof FileActions!=='undefined'){
FileActions.register('text','Edit','',function(filename){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment