minor changes

This commit is contained in:
coderaiser 2013-02-23 05:09:33 -05:00
parent 07f13eefb2
commit 625eac0133
2 changed files with 21 additions and 10 deletions

View file

@ -2,7 +2,7 @@
"api_url" : "/api/v1",
"appcache" : false,
"minification" : {
"js" : true,
"js" : false,
"css" : true,
"html" : true,
"img" : true

View file

@ -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);
}
}
};