From cdc1a395e73b8323a74b82ea4cde3139813d7405 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 19 Feb 2013 05:41:09 -0500 Subject: [PATCH] minor changes --- lib/client.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/client.js b/lib/client.js index dd944682..3b52ddf7 100644 --- a/lib/client.js +++ b/lib/client.js @@ -528,17 +528,17 @@ CloudCmd._ajaxLoad = function(pPath, pOptions){ pOptions = {}; /* Отображаем красивые пути */ - var lFSPath = decodeURI(pPath); - lFSPath = Util.removeStr( lFSPath, CloudFunc.NOJS ); - pPath = Util.removeStr( lFSPath, '?json' ); - var lCleanPath = Util.removeStr( pPath, CloudFunc.FS ) || '/'; + var lFSPath = decodeURI(pPath), + lNOJSPath = Util.removeStr( lFSPath, '?json' ), + lCleanPath = Util.removeStr( lNOJSPath, CloudFunc.FS ) || '/'; + Util.log ('reading dir: "' + lCleanPath + '";'); if(!pOptions.nohistory){ - pPath = lCleanPath === '/' ? '/' : pPath; - DOM.setHistory(pPath, null, pPath); + lNOJSPath = lCleanPath === '/' ? '/' : lNOJSPath; + DOM.setHistory(lNOJSPath, null, lNOJSPath); } DOM.setTitle( CloudFunc.getTitle(lCleanPath) );