diff --git a/lib/client.js b/lib/client.js index 6ba2d8c6..e1eb926e 100644 --- a/lib/client.js +++ b/lib/client.js @@ -253,21 +253,22 @@ var Util, DOM, CloudFunc, CloudCmd; Util.exec(pCallBack); } - function baseInit(pCallBack){ - if(window.applicationCache){ - Events.add('updateready', function(){ + function baseInit(pCallBack) { + if (window.applicationCache) + Events.add('updateready', function() { Util.log('app cacheed'); location.reload(); }, applicationCache); - } /* загружаем общие функции для клиента и сервера */ - DOM.jsload(CloudCmd.LIBDIR + 'cloudfunc.js', function(){ + DOM.jsload(CloudCmd.LIBDIR + 'cloudfunc.js', function() { Events.add("popstate", function(pEvent) { var lPath = pEvent.state + '?json'; if(lPath) - ajaxLoad(lPath, {nohistory: true}); + ajaxLoad(lPath, { + nohistory: true + }); return true; }); @@ -279,7 +280,7 @@ var Util, DOM, CloudFunc, CloudCmd; Cache.setAllowed(true); /* Устанавливаем кэш корневого каталога */ var lDirPath = DOM.getCurrentDirPath(); - if( !Cache.get(lDirPath) ) + if (!Cache.get(lDirPath)) Cache.set(lDirPath, getJSONfromFileTable()); });