From 5ee28766a5d2ad98c9d66be7e34fa90654f1d964 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sat, 9 Feb 2013 15:40:51 -0500 Subject: [PATCH] minor changes --- json/config.json | 2 +- lib/client/google_analytics.js | 2 +- lib/client/menu.js | 1 - lib/server/main.js | 5 +++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/json/config.json b/json/config.json index e53c7ca4..609d9776 100644 --- a/json/config.json +++ b/json/config.json @@ -2,7 +2,7 @@ "api_url" : "/api/v1", "appcache" : false, "minification" : { - "js" : true, + "js" : false, "css" : true, "html" : true, "img" : true diff --git a/lib/client/google_analytics.js b/lib/client/google_analytics.js index a4f499fd..ed65f695 100644 --- a/lib/client/google_analytics.js +++ b/lib/client/google_analytics.js @@ -10,6 +10,6 @@ var DOM, _gaq; navigator.userAgent + ' -> ' + url + " : " + line]); }); - DOM.jsload('http://google-analytics.com/ga.js'); + DOM.jsload('//google-analytics.com/ga.js'); })(DOM, _gaq); \ No newline at end of file diff --git a/lib/client/menu.js b/lib/client/menu.js index 7f50f090..4d050f54 100644 --- a/lib/client/menu.js +++ b/lib/client/menu.js @@ -24,7 +24,6 @@ var CloudCommander, Util, DOM, $; function showEditor(pReadOnly){ DOM.Images.showLoad(); var lEditor = CloudCmd[pReadOnly ? 'Viewer' : 'Editor'], - lResult = Util.exec(lEditor, pReadOnly); if(!lResult){ diff --git a/lib/server/main.js b/lib/server/main.js index 6737266c..7cb1848d 100644 --- a/lib/server/main.js +++ b/lib/server/main.js @@ -193,12 +193,13 @@ */ function sendFile(pParams){ var lRet, - lName, lReq, lRes, lQuery; + lName, lReq, lRes, lQuery, lGziped; if(pParams){ lName = pParams.name, lReq = pParams.request, lRes = pParams.response; + lGziped = pParams.gziped; lQuery = getQuery(lReq); } @@ -217,7 +218,7 @@ lRes.writeHead(OK, generateHeaders(lName, lGzip, lQuery ) ); - if (lGzip) + if (lGzip && !lGziped) lReadStream = lReadStream.pipe( zlib.createGzip() ); lReadStream.pipe(lRes);