feature(listeners) rm changeLinks

This commit is contained in:
coderaiser 2014-05-24 12:37:38 -04:00
parent 913fc2f7ce
commit f6fa86f598
2 changed files with 0 additions and 32 deletions

View file

@ -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 !== '/')

View file

@ -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,