added ability to remove /fs/no-js when go up to root directory

This commit is contained in:
coderaiser 2013-02-18 04:50:51 -05:00
parent 5ee28766a5
commit 348bcddebe
2 changed files with 12 additions and 6 deletions

View file

@ -133,6 +133,9 @@ time was changed.
* Added ability show context menu on right click
while menu is showing now.
* Added ability to remove /fs/no-js when go up to root
directory.
2012.12.12, Version 0.1.8

View file

@ -528,19 +528,22 @@ CloudCmd._changeLinks = function(pPanelID){
*/
CloudCmd._ajaxLoad = function(pPath, pOptions){
if(!pOptions)
pOptions = {};
pOptions = {};
/* Отображаем красивые пути */
var lFSPath = decodeURI(pPath);
var lFSPath = decodeURI(pPath);
lFSPath = Util.removeStr( lFSPath, CloudFunc.NOJS );
lFSPath = Util.removeStr( lFSPath, CloudFunc.NOJS );
var lCleanPath = Util.removeStr(lFSPath, CloudFunc.FS);
Util.log ('reading dir: "' + lCleanPath + '";');
if(!pOptions.nohistory)
DOM.setHistory(pPath, null, pPath);
DOM.setTitle( CloudFunc.getTitle(pPath) );
if(!pOptions.nohistory){
pPath = lCleanPath === '/' ? '/' : pPath;
DOM.setHistory(pPath, null, pPath);
}
DOM.setTitle( CloudFunc.getTitle(lCleanPath) );
/* если доступен localStorage и
* в нём есть нужная нам директория -