diff --git a/lib/client/listeners.js b/lib/client/listeners.js index 55a79e54..87ff50e3 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -83,7 +83,7 @@ var Util, DOM, CloudCmd; var i, n, ai, link, loadDir, url = CloudCmd.HOST, panel = DOM.getById(panelId), - filesElement = DOM.getByClass('files', panel), + filesElement = DOM.getByDataName('js-files', panel), pathElement = DOM.getByDataName('js-path', panel), pathLinks = DOM.getByClass('links', pathElement).children, clearStorage = DOM.getByClass('clear-storage', pathElement), @@ -109,7 +109,7 @@ var Util, DOM, CloudCmd; var i, n, ai, link, loadDir, url = CloudCmd.HOST, panel = DOM.getById(panelId), - filesElement = DOM.getByClass('files', panel), + filesElement = DOM.getByDataName('js-files', panel), pathElement = DOM.getByDataName('js-path', panel), pathLinks = DOM.getByClass('links', pathElement).children, clearStorage = DOM.getByClass('clear-storage', pathElement), @@ -139,7 +139,7 @@ var Util, DOM, CloudCmd; this.changeLinks = function(panelId) { var i, n, a, ai, current, id, panel = DOM.getById(panelId), - filesElement = DOM.getByClass('files', panel), + filesElement = DOM.getByDataName('js-files', panel), files = filesElement.children; a = DOM.getByTag('a', filesElement);