mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 21:53:14 +00:00
minor changes
This commit is contained in:
parent
abe7644a1d
commit
de4ce46bc3
2 changed files with 5 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue