feature(path) links: add data-name

This commit is contained in:
coderaiser 2014-04-18 04:10:56 -04:00
parent 5d1d9e3433
commit 2fe3595fc6
3 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
<div data-name="js-path" class="reduce-text" title="{{ fullPath }}"><span class="path-icon clear-storage" title="clear storage (Ctrl+D)"></span><a data-name="js-refresh" href="{{ link }}" class="path-icon refresh-icon" title="refresh (Ctrl+R)"></a><span class=links>{{ path }}</span></div>
<div data-name="js-path" class="reduce-text" title="{{ fullPath }}"><span class="path-icon clear-storage" title="clear storage (Ctrl+D)"></span><a data-name="js-refresh" href="{{ link }}" class="path-icon refresh-icon" title="refresh (Ctrl+R)"></a><span data-name="js-links" class=links>{{ path }}</span></div>

View file

@ -85,7 +85,7 @@ var Util, DOM, CloudCmd;
panel = DOM.getById(panelId),
filesElement = DOM.getByDataName('js-files', panel),
pathElement = DOM.getByDataName('js-path', panel),
pathLinks = DOM.getByClass('links', pathElement).children,
pathLinks = DOM.getByDataName('js-links', pathElement).children,
clearStorage = DOM.getByClass('clear-storage', pathElement),
refresh = DOM.getByDataName('js-refresh', pathElement);
@ -111,7 +111,7 @@ var Util, DOM, CloudCmd;
panel = DOM.getById(panelId),
filesElement = DOM.getByDataName('js-files', panel),
pathElement = DOM.getByDataName('js-path', panel),
pathLinks = DOM.getByClass('links', pathElement).children,
pathLinks = DOM.getByDataName('js-links', pathElement).children,
clearStorage = DOM.getByClass('clear-storage', pathElement),
refresh = DOM.getByDataName('js-refresh', pathElement);

View file

@ -41,7 +41,7 @@
'</span>' +
'<a data-name="js-refresh" href="/fs/etc/X11" ' +
'class="path-icon refresh-icon" title="refresh (Ctrl+R)"></a>' +
'<span class=links>' +
'<span data-name="js-links" class=links>' +
'<a href="/fs" title="/">/</a>' +
'<a href="/fs/etc" title="/etc">' +
'etc' +