refactor(dom) getRefreshButton: rm CloudFunc.REFRESHICON

This commit is contained in:
coderaiser 2014-06-23 06:30:10 -04:00
parent 950dd5651a
commit d245733864
2 changed files with 3 additions and 10 deletions

View file

@ -822,14 +822,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
* unified way to get RefreshButton
*/
this.getRefreshButton = function() {
if (!CloudFunc)
console.trace();
var panel = this.getPanel(),
refresh = this.getByDataName('js-refresh', panel);
var lPanel = this.getPanel(),
lRefresh = this.getByClass(CloudFunc.REFRESHICON, lPanel),
ret = lRefresh;
return ret;
return refresh;
};

View file

@ -24,9 +24,6 @@ var Util;
/* если в ссылке будет эта строка - в браузере js отключен */
this.FS = FS = '/fs';
/* название css-класа кнопки обновления файловой структуры*/
this.REFRESHICON = 'refresh-icon';
this.apiURL = '/api/v1';
/* id панелей с файлами */
this.PANEL_LEFT = 'js-left';