mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(listeners) rm changeLinks
This commit is contained in:
parent
913fc2f7ce
commit
f6fa86f598
2 changed files with 0 additions and 32 deletions
|
|
@ -257,9 +257,6 @@ var Util, DOM, CloudFunc;
|
|||
/* загружаем Google Analytics */
|
||||
Listeners.analytics();
|
||||
|
||||
Listeners.changeLinks(LEFT);
|
||||
Listeners.changeLinks(RIGHT);
|
||||
|
||||
Listeners.setOnPanel(LEFT);
|
||||
Listeners.setOnPanel(RIGHT);
|
||||
|
||||
|
|
@ -454,7 +451,6 @@ var Util, DOM, CloudFunc;
|
|||
nohistory: nohistory
|
||||
});
|
||||
|
||||
Listeners.changeLinks(panel.id);
|
||||
Listeners.setOnPanel(panel.id);
|
||||
|
||||
if (name === '..' && dir !== '/')
|
||||
|
|
|
|||
|
|
@ -109,34 +109,6 @@ var Util, DOM, CloudCmd;
|
|||
Events.add(EventsFiles, filesElement);
|
||||
};
|
||||
|
||||
/**
|
||||
* функция меняет ссыки на ajax-овые
|
||||
* @param panelId
|
||||
*/
|
||||
this.changeLinks = function(panelId) {
|
||||
var i, n, a, ai, current, id,
|
||||
panel = DOM.getById(panelId),
|
||||
filesElement = DOM.getByDataName('js-files', panel),
|
||||
files = filesElement.children;
|
||||
|
||||
a = DOM.getByTag('a', filesElement);
|
||||
|
||||
n = a.length;
|
||||
for (i = 0; i < n ; i++) {
|
||||
current = files[i];
|
||||
ai = a[i];
|
||||
|
||||
if (ai.title)
|
||||
id = ai.title;
|
||||
else
|
||||
id = ai.textContent;
|
||||
|
||||
id += '(' + panelId + ')';
|
||||
|
||||
current.id = id;
|
||||
}
|
||||
};
|
||||
|
||||
function mousemove() {
|
||||
DOM.Events.add('mousemove', function(event) {
|
||||
var position = CloudCmd.MousePosition,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue