diff --git a/html/index.html b/html/index.html index a2d2d0da..b0d112c4 100644 --- a/html/index.html +++ b/html/index.html @@ -28,6 +28,50 @@ - + diff --git a/lib/client.js b/lib/client.js index 4d204cd6..ffa82cf8 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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');