diff options
author | wei <> | 2006-09-16 03:43:02 +0000 |
---|---|---|
committer | wei <> | 2006-09-16 03:43:02 +0000 |
commit | 2d8fc0f1818aa896bebedf8cbeedffb17d048600 (patch) | |
tree | 2ef6ea939d5f018598ec2983086354000750fb70 /framework/Web/Javascripts/prado/ajax3.js | |
parent | d148330f1fe3cb6116a69e56ecd44c37bfb2a44e (diff) |
Fixed #340
Diffstat (limited to 'framework/Web/Javascripts/prado/ajax3.js')
-rw-r--r-- | framework/Web/Javascripts/prado/ajax3.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/prado/ajax3.js b/framework/Web/Javascripts/prado/ajax3.js index 8ae6b064..5374387d 100644 --- a/framework/Web/Javascripts/prado/ajax3.js +++ b/framework/Web/Javascripts/prado/ajax3.js @@ -191,7 +191,7 @@ Object.extend(Prado.CallbackRequest, msg += inspect(action)+"\n";
});
}
- Logger.warn(msg);
+ Logger.info(msg);
}
},
@@ -286,8 +286,9 @@ Object.extend(Prado.CallbackRequest, //Logger.info("aborting ... "+inProgress);
if(inProgress)
{
- // Logger.warn("aborted "+inProgress.id)
- inProgress.request.transport.abort();
+ //abort if not ready.
+ if(inProgress.request.transport.readyState < 4)
+ inProgress.request.transport.abort();
clearTimeout(inProgress.timeout);
Prado.CallbackRequest.requestInProgress = null;
return true;
@@ -310,9 +311,11 @@ Object.extend(Prado.CallbackRequest, else
{
if(typeof(Logger) != "undefined")
- Logger.debug("Bad page state:"+data);
+ Logger.warn("Missing page state:"+data);
+ return false;
}
}
+ return true;
}
})
|