minor changes

This commit is contained in:
coderaiser 2013-03-10 17:04:42 -04:00
parent abe7644a1d
commit de4ce46bc3
2 changed files with 5 additions and 10 deletions

View file

@ -283,14 +283,9 @@ var CloudCommander, Util,
var lData = lJqXHR.response;
/* If it's json - parse it as json */
if(lType && Util.isContainStr(lType, 'application/json') ){
var lResult = Util.tryCatch(function(){
lData = Util.parseJSON(lJqXHR.response);
});
if( Util.log(lResult) )
lData = lJqXHR.response;
}
if(lType && Util.isContainStr(lType, 'application/json') )
lData = Util.parseJSON(lJqXHR.response) || lJqXHR.response;
if( Util.isFunction(p.success) )
p.success(lData, lJqXHR.statusText, lJqXHR);
}