diff --git a/html/path.html b/html/path.html
index 3a3a9ef4..a2e79700 100644
--- a/html/path.html
+++ b/html/path.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/lib/client/dom.js b/lib/client/dom.js
index 5ba337df..9681621a 100644
--- a/lib/client/dom.js
+++ b/lib/client/dom.js
@@ -860,7 +860,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
*/
this.getCurrentDirPath = function(pPanel) {
var lPanel = pPanel || this.getPanel(),
- lPath = this.getById('js-path', lPanel),
+ lPath = this.getByClass('js-path', lPanel),
lRet;
if (lPath)
@@ -887,14 +887,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
* get not current direcotory path
*/
this.getNotCurrentDirPath = function() {
- var lPanel = this.getPanel(true),
- lPath = this.getById('js-path', lPanel),
- lRet;
+ var panel = this.getPanel(true),
+ path = getCurrentDirPath(panel);
- if (lPath)
- lRet = lPath.textContent;
-
- return lRet;
+ return path;
};
/**
diff --git a/lib/client/listeners.js b/lib/client/listeners.js
index 9adf852b..fffc107c 100644
--- a/lib/client/listeners.js
+++ b/lib/client/listeners.js
@@ -77,7 +77,7 @@ var Util, DOM, CloudCmd;
this.changeLinks = function(pPanelID) {
/* назначаем кнопку очистить кэш и показываем её */
var lPanel = DOM.getById(pPanelID),
- pathElement = DOM.getById('js-path', lPanel),
+ pathElement = DOM.getByClass('js-path', lPanel),
pathLinks = DOM.getByClass('links', pathElement).children,
clearStorage = DOM.getByClass('clear-storage', pathElement),
refresh = DOM.getByClass('refresh-icon', pathElement),