From 5fdf5295b89139ec12fd6a09a4d658ba951d46b7 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 24 Aug 2012 06:18:49 -0400 Subject: [PATCH] minor changes --- client.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client.js b/client.js index ebfafaf6..202bc288 100644 --- a/client.js +++ b/client.js @@ -551,12 +551,13 @@ CloudClient.Utils = (function(){ lRet_b = false; } var lCurrentFileWas = this.getCurrentFile(); - if(lCurrentFileWas) - this.unSetCurrentFile(lCurrentFileWas); - + var lClass = pCurrentFile.className; if (lClass !== 'path' && lClass !== 'fm_header'){ + if(lCurrentFileWas) + this.unSetCurrentFile(lCurrentFileWas); + pCurrentFile.className = CloudCommander.CURRENT_FILE; } else { this.addCloudStatus({ @@ -581,12 +582,11 @@ CloudClient.Utils = (function(){ 'unSetCurrentFile' + 'could not be none' }); + var lRet_b = this.isCurrentFile(pCurrentFile); + if(lRet_b) + pCurrentFile.className = ''; - if(this.isCurrentFile(pCurrentFile)) - pCurrentFile.className = ''; - - else return false; - + return lRet_b; }; this.isCurrentFile = function(pCurrentFile){