refactor(client) ajaxLoad

This commit is contained in:
coderaiser 2014-01-20 06:04:57 -05:00
parent 095f1eb568
commit 8e5b4b8498

View file

@ -327,6 +327,7 @@ var Util, DOM, CloudFunc;
/* Отображаем красивые пути */
var lSLASH = '/',
title = CloudFunc.getTitle(lCleanPath),
lFSPath = decodeURI(pPath),
lNOJSPath = Util.removeStr( lFSPath, '?json' ),
lCleanPath = Util.removeStrOneTime( lNOJSPath, CloudFunc.FS ) || lSLASH,
@ -341,7 +342,7 @@ var Util, DOM, CloudFunc;
if (!pOptions.nohistory)
DOM.setHistory(lNOJSPath, null, lNOJSPath);
DOM.setTitle( CloudFunc.getTitle(lCleanPath) );
DOM.setTitle(title);
/* если доступен localStorage и
* в нём есть нужная нам директория -