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

@ -2,12 +2,12 @@
"api_url" : "/api/v1",
"appcache" : false,
"minification" : {
"js" : true,
"js" : false,
"css" : true,
"html" : true,
"img" : true
},
"cache" : true,
"cache" : false,
"logs" : false,
"show_keys_panel" : true,
"server" : true,

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