From 8e5b4b8498c01b752efc89ee8197fe5bc58c22d7 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 20 Jan 2014 06:04:57 -0500 Subject: [PATCH] refactor(client) ajaxLoad --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 072623c9..aa598819 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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 и * в нём есть нужная нам директория -