minor changes

This commit is contained in:
coderaiser 2012-11-21 05:27:11 -05:00
parent c4f253848b
commit 7ffe783777
4 changed files with 9 additions and 8 deletions

View file

@ -39,7 +39,7 @@
* меняем в index.html обычные css на
* минифицированый
*/
if(srv.Minify._allowed.css){
if(srv.Minify._allowed.css){
lReplace_s = '<link rel=stylesheet href="/css/reset.css">';
lData = Util.removeStr(lData, lReplace_s);
@ -53,8 +53,9 @@
lData = lData.replace('<title>Cloud Commander</title>',
'<title>' + CloudFunc.setTitle() + '</title>');
console.log(lData);
if(!srv.Config.appcache)
lData = Util.removeStr(lData, ' manifest=/cloudcmd.appcache');
lData = Util.removeStr(lData, ' manifest="/cloudcmd.appcache"');
if(!srv.Config.show_keys_panel){
var lKeysPanel = '<div id=keyspanel';

View file

@ -2,10 +2,10 @@
"cache" : {"allowed" : false},
"appcache" : false,
"minification" : {
"js" : false,
"css" : false,
"html" : false,
"img" : false
"js" : true,
"css" : true,
"html" : true,
"img" : true
},
"oauth_client_id" : "891c251b925e4e967fa9",
"oauth_client_secret" : "afe9bed1e810c5dc44c4c2a953fc6efb1e5b0545",

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html manifest=/cloudcmd.appcache>
<html manifest="/cloudcmd.appcache">
<head>
<meta charset="utf-8">
<!-- mobile first design -->

View file

@ -299,7 +299,7 @@ CloudServer._controller = function(pReq, pRes)
console.log('trying to read data from Minify.Cache');
lFromCache_o.cache = false;
lFileData = CloudServer.Minify.Cache[
Path.basename(lName)];
Path.basename(lName)];
}
var lReadFileFunc_f = CloudServer.getReadFileFunc(lName),
/* если там что-то есть передаём данные в функцию readFile */