diff --git a/json/config.json b/json/config.json index 237625ab..4a411e71 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/dom.js b/lib/client/dom.js index af740a4c..412f7ac2 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -60,6 +60,8 @@ var CloudCommander, Util, /** * private function thet unset currentfile + * + * @pCurrentFile */ function unSetCurrentFile(pCurrentFile){ var lRet_b = DOM.isCurrentFile(pCurrentFile); @@ -80,6 +82,7 @@ var CloudCommander, Util, /** * add class to current element + * * @param pElement * @param pClass */ @@ -101,6 +104,7 @@ var CloudCommander, Util, /** * safe add event listener + * * @param pType * @param pListener * @param pUseCapture @@ -128,6 +132,7 @@ var CloudCommander, Util, /** * safe add event listener + * * @param pType * @param pListener * @param pUseCapture @@ -147,6 +152,7 @@ var CloudCommander, Util, /** * safe remove event listener + * * @param pType * @param pListener * @param pUseCapture @@ -167,6 +173,7 @@ var CloudCommander, Util, /** * safe add event keydown listener + * * @param pListener * @param pUseCapture */ @@ -176,6 +183,7 @@ var CloudCommander, Util, /** * safe add event click listener + * * @param pListener * @param pUseCapture */ @@ -189,6 +197,7 @@ var CloudCommander, Util, /** * safe add event click listener + * * @param pListener * @param pUseCapture */ @@ -216,6 +225,8 @@ var CloudCommander, Util, /** * load file countent thrue ajax + * + * @param pParams */ DOM.ajax = function(pParams){ var lType = pParams.type || 'GET', @@ -229,7 +240,7 @@ var CloudCommander, Util, XMLHTTP.send(lData); if( !Util.isFunction(lSuccess_f) ){ - Util.log('error in DOM.ajax onSuccess:', pParams); + Util.log('error in DOM.ajax onSuccess:'); Util.log(pParams); } @@ -238,7 +249,7 @@ var CloudCommander, Util, var lJqXHR = pEvent.target, lType = XMLHTTP.getResponseHeader('content-type'); - if (XMLHTTP.status === 200 /* OK */){ + if (XMLHTTP.status === 200 /* OK */){ var lData = lJqXHR.response; /* If it's json - parse it as json */ @@ -253,15 +264,15 @@ var CloudCommander, Util, lSuccess_f(lData, lJqXHR.statusText, lJqXHR); } - else/* file not found or connection lost */{ - /* if html given or something like it + /* file not found or connection lost */ + else{ + /* if html given or something like thet * getBack just status of result */ - if(lType && - lType.indexOf('text/plain') !== 0){ - lJqXHR.responseText = lJqXHR.statusText; - } - Util.exec(pParams.error, lJqXHR); + if(lType && lType.indexOf('text/plain') !== 0) + lJqXHR.responseText = lJqXHR.statusText; + + Util.exec(pParams.error, lJqXHR); } } };