fix(listeners) changeLinks: pPanelID -> panelId

This commit is contained in:
coderaiser 2014-02-07 11:07:42 -05:00
parent 2bac2857e0
commit 47a220d24d

View file

@ -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 + ')';
}
};