added jquery and droids font to manifest

This commit is contained in:
coderaiser 2012-09-15 12:40:24 -04:00
parent 1a804e5ba2
commit e291bf2317
4 changed files with 19 additions and 6 deletions

View file

@ -1104,11 +1104,11 @@ CloudClient.baseInit = (function(){
Util.cssSet({id:'show_2panels',
element:document.head,
inner:
'.panel{' +
'height:' + lHeight +'px;' +
'width:46%;' +
'.panel{' +
'height:' + lHeight +'px;' +
'width:46%;' +
'}'
});
});
});
/* функция меняет ссыки на ajax-овые */

View file

@ -1,4 +1,4 @@
/*
/*1
@import url(//fonts.googleapis.com/css?family=Droid+Sans+Mono);
*/

View file

@ -16,6 +16,16 @@ var Manifest = '';
setWatachFunctions();
/* function add file or files to manifest */
exports.addFiles = function(pFileNames_a){
if(pFileNames_a instanceof Array)
for(var i=0; i < pFileNames_a.Length; i++)
exports.watch(pFileNames_a[i]);
else
exports.watch(pFileNames_a);
};
exports.createManifest = function(){
var lAllNames = cloudRequire(process.cwd() + '/hashes');

View file

@ -164,8 +164,11 @@ CloudServer.init = (function(){
/* створюємо файл app cache */
var lAppCache = CloudServer.AppCache;
if(lAppCache)
if(lAppCache){
lAppCache.addFiles(
['./lib/jquery.js', './font/DroidSansMono.woff','./min/all.min.css']);
lAppCache.createManifest();
}
});