mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(client) rm " "
This commit is contained in:
parent
8eac2644a1
commit
1019364f23
1 changed files with 8 additions and 7 deletions
|
|
@ -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());
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue