diff --git a/lib/client/listeners.js b/lib/client/listeners.js index 7d2f5005..5752fcac 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -72,16 +72,18 @@ var Util, DOM, CloudCmd; /** * функция меняет ссыки на ajax-овые - * @param pPanelID + * @param panelId */ - this.changeLinks = function(pPanelID) { + this.changeLinks = function(panelId) { var i, n, a, ai, current, link, loadDir, events, - filesElement = DOM.getByClass('files', panel), - files = filesElement.children, + url = CloudCmd.HOST, loadDirOnce = CloudCmd.loadDir(), - panel = DOM.getById(pPanelID), + panel = DOM.getById(panelId), pathElement = DOM.getByClass('js-path', panel), + filesElement = DOM.getByClass('files', panel), + + files = filesElement.children, pathLinks = DOM.getByClass('links', pathElement).children, clearStorage = DOM.getByClass('clear-storage', pathElement), refresh = DOM.getByClass('refresh-icon', pathElement), @@ -197,7 +199,7 @@ var Util, DOM, CloudCmd; Events.add(events, current); current.id = (ai.title ? ai.title : ai.textContent) + - '(' + pPanelID + ')'; + '(' + panelId + ')'; } };