From f6fa86f598fad55902b31ecd12605549260f60d9 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 24 May 2014 12:37:38 -0400 Subject: [PATCH] feature(listeners) rm changeLinks --- lib/client.js | 4 ---- lib/client/listeners.js | 28 ---------------------------- 2 files changed, 32 deletions(-) diff --git a/lib/client.js b/lib/client.js index c73cc00b..563abafc 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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 !== '/') diff --git a/lib/client/listeners.js b/lib/client/listeners.js index dffc45c9..11d83e02 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -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,