mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
feature(client) mv cloudfunc, listeners to index
This commit is contained in:
parent
25473fdb51
commit
1cfab411e2
2 changed files with 66 additions and 25 deletions
|
|
@ -247,30 +247,27 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
LIBCLIENT + 'listeners.js'
|
||||
];
|
||||
|
||||
/* загружаем общие функции для клиента и сервера */
|
||||
DOM.anyLoadInParallel(files, function() {
|
||||
Listeners = CloudCmd.Listeners;
|
||||
|
||||
Listeners.init();
|
||||
/* загружаем Google Analytics */
|
||||
Listeners.analytics();
|
||||
Listeners.changeLinks(CloudFunc.LEFTPANEL);
|
||||
Listeners.changeLinks(CloudFunc.RIGHTPANEL);
|
||||
|
||||
CloudCmd.KeysPanel = Listeners.initKeysPanel();
|
||||
|
||||
CloudCmd.getConfig(function(config) {
|
||||
var localStorage = config.localStorage;
|
||||
/* устанавливаем переменную доступности кэша */
|
||||
Storage.setAllowed(localStorage);
|
||||
/* Устанавливаем кэш корневого каталога */
|
||||
var lDirPath = DOM.getCurrentDirPath();
|
||||
if (!Storage.get(lDirPath))
|
||||
Storage.set(lDirPath, getJSONfromFileTable());
|
||||
});
|
||||
|
||||
Util.exec(pCallBack);
|
||||
});
|
||||
Listeners = CloudCmd.Listeners;
|
||||
|
||||
Listeners.init();
|
||||
/* загружаем Google Analytics */
|
||||
Listeners.analytics();
|
||||
Listeners.changeLinks(CloudFunc.LEFTPANEL);
|
||||
Listeners.changeLinks(CloudFunc.RIGHTPANEL);
|
||||
|
||||
CloudCmd.KeysPanel = Listeners.initKeysPanel();
|
||||
|
||||
CloudCmd.getConfig(function(config) {
|
||||
var localStorage = config.localStorage;
|
||||
/* устанавливаем переменную доступности кэша */
|
||||
Storage.setAllowed(localStorage);
|
||||
/* Устанавливаем кэш корневого каталога */
|
||||
var lDirPath = DOM.getCurrentDirPath();
|
||||
if (!Storage.get(lDirPath))
|
||||
Storage.set(lDirPath, getJSONfromFileTable());
|
||||
});
|
||||
|
||||
Util.exec(pCallBack);
|
||||
|
||||
/* выделяем строку с первым файлом */
|
||||
var lFmHeader = DOM.getByClass('fm-header');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue