chore(client) rm " "

This commit is contained in:
coderaiser 2013-08-22 15:57:28 +00:00
parent 8eac2644a1
commit 1019364f23

View file

@ -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());
});