mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
minor changes
This commit is contained in:
parent
2558b15cfb
commit
30192d2e29
1 changed files with 5 additions and 3 deletions
|
|
@ -152,10 +152,12 @@ CloudClient.Utils = (function(){
|
|||
if(typeof lSuccess_f !== 'function')
|
||||
console.log('error in Util.ajax onSuccess:', pParams);
|
||||
|
||||
lXMLHTTP.onreadystatechange = function(jqXHR, textStatus, errorThrown){
|
||||
lXMLHTTP.onreadystatechange = function(pEvent){
|
||||
if (lXMLHTTP.readyState === 4 /* Complete */ &&
|
||||
lXMLHTTP.status === 200 /* OK */)
|
||||
lSuccess_f(jqXHR, textStatus, errorThrown);
|
||||
lXMLHTTP.status === 200 /* OK */){
|
||||
var lJqXHR = pEvent.target;
|
||||
lSuccess_f(lJqXHR.response, lJqXHR.statusText, lJqXHR);
|
||||
}
|
||||
};
|
||||
}
|
||||
else $.ajax(pParams);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue