minor changes

This commit is contained in:
coderaiser 2013-02-19 05:41:09 -05:00
parent d8a053f670
commit cdc1a395e7

View file

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