refactor(path) #js-path -> .js-path

This commit is contained in:
coderaiser 2014-01-22 11:10:00 -05:00
parent c634b44828
commit 88cda37b2c
3 changed files with 6 additions and 10 deletions

View file

@ -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>

View file

@ -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;
};
/**

View file

@ -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),