mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
added ability to remove /fs/no-js when go up to root directory
This commit is contained in:
parent
5ee28766a5
commit
348bcddebe
2 changed files with 12 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 и
|
||||
* в нём есть нужная нам директория -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue