From 56dc73f4316ee416d95e53e9e4785b02ba1eeb38 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 31 Jul 2012 04:44:51 -0400 Subject: [PATCH] minor changes --- client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }