mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature(path) clear-storage: add data-name
This commit is contained in:
parent
2fe3595fc6
commit
2d23b808cb
3 changed files with 4 additions and 4 deletions
|
|
@ -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 data-name="js-links" class=links>{{ path }}</span></div>
|
||||
<div data-name="js-path" class="reduce-text" title="{{ fullPath }}"><span data-name="js-clear-storage" 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>
|
||||
|
|
@ -86,7 +86,7 @@ var Util, DOM, CloudCmd;
|
|||
filesElement = DOM.getByDataName('js-files', panel),
|
||||
pathElement = DOM.getByDataName('js-path', panel),
|
||||
pathLinks = DOM.getByDataName('js-links', pathElement).children,
|
||||
clearStorage = DOM.getByClass('clear-storage', pathElement),
|
||||
clearStorage = DOM.getByDataName('js-clear-storage', pathElement),
|
||||
refresh = DOM.getByDataName('js-refresh', pathElement);
|
||||
|
||||
/* ставим загрузку гифа на клик*/
|
||||
|
|
@ -112,7 +112,7 @@ var Util, DOM, CloudCmd;
|
|||
filesElement = DOM.getByDataName('js-files', panel),
|
||||
pathElement = DOM.getByDataName('js-path', panel),
|
||||
pathLinks = DOM.getByDataName('js-links', pathElement).children,
|
||||
clearStorage = DOM.getByClass('clear-storage', pathElement),
|
||||
clearStorage = DOM.getByDataName('js-clear-storage', pathElement),
|
||||
refresh = DOM.getByDataName('js-refresh', pathElement);
|
||||
|
||||
/* ставим загрузку гифа на клик*/
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
Expect =
|
||||
'<div data-name="js-path" class="reduce-text" title="/etc/X11/">' +
|
||||
'<span class="path-icon clear-storage" ' +
|
||||
'<span data-name="js-clear-storage" class="path-icon clear-storage" ' +
|
||||
'title="clear storage (Ctrl+D)">' +
|
||||
'</span>' +
|
||||
'<a data-name="js-refresh" href="/fs/etc/X11" ' +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue