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) );