diff --git a/client.js b/client.js index b2be4268..5414c617 100644 --- a/client.js +++ b/client.js @@ -299,6 +299,8 @@ CloudClient._setCurrent=(function(){ this.className!=='fm_header'){ if (this.className === CloudClient.CURRENT_FILE){ + var lParent = this; + setTimeout(function(){ /* waiting a few seconds * and if classes still equal @@ -306,7 +308,7 @@ CloudClient._setCurrent=(function(){ * in other case * double click event happend */ - if(this.className === CloudClient.CURRENT_FILE) + if(lParent.className === CloudClient.CURRENT_FILE) CloudClient._editFileName(); },400); }