mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
fix(listeners) changeLinks: pPanelID -> panelId
This commit is contained in:
parent
2bac2857e0
commit
47a220d24d
1 changed files with 8 additions and 6 deletions
|
|
@ -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 + ')';
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue