mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(path) #js-path -> .js-path
This commit is contained in:
parent
c634b44828
commit
88cda37b2c
3 changed files with 6 additions and 10 deletions
|
|
@ -1 +1 @@
|
|||
<div id="js-path" class="reduce-text" title="{{ fullPath }}"><span class="path-icon clear-storage" title="clear storage (Ctrl+D)"></span><span class="path-icon refresh-icon" title="refresh (Ctrl+R)"><a href="{{ link }}"></a></span><span class=links>{{ path }}</span></div>
|
||||
<div class="js-path reduce-text" title="{{ fullPath }}"><span class="path-icon clear-storage" title="clear storage (Ctrl+D)"></span><span class="path-icon refresh-icon" title="refresh (Ctrl+R)"><a href="{{ link }}"></a></span><span class=links>{{ path }}</span></div>
|
||||
|
|
@ -860,7 +860,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*/
|
||||
this.getCurrentDirPath = function(pPanel) {
|
||||
var lPanel = pPanel || this.getPanel(),
|
||||
lPath = this.getById('js-path', lPanel),
|
||||
lPath = this.getByClass('js-path', lPanel),
|
||||
lRet;
|
||||
|
||||
if (lPath)
|
||||
|
|
@ -887,14 +887,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
* get not current direcotory path
|
||||
*/
|
||||
this.getNotCurrentDirPath = function() {
|
||||
var lPanel = this.getPanel(true),
|
||||
lPath = this.getById('js-path', lPanel),
|
||||
lRet;
|
||||
var panel = this.getPanel(true),
|
||||
path = getCurrentDirPath(panel);
|
||||
|
||||
if (lPath)
|
||||
lRet = lPath.textContent;
|
||||
|
||||
return lRet;
|
||||
return path;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ var Util, DOM, CloudCmd;
|
|||
this.changeLinks = function(pPanelID) {
|
||||
/* назначаем кнопку очистить кэш и показываем её */
|
||||
var lPanel = DOM.getById(pPanelID),
|
||||
pathElement = DOM.getById('js-path', lPanel),
|
||||
pathElement = DOM.getByClass('js-path', lPanel),
|
||||
pathLinks = DOM.getByClass('links', pathElement).children,
|
||||
clearStorage = DOM.getByClass('clear-storage', pathElement),
|
||||
refresh = DOM.getByClass('refresh-icon', pathElement),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue