mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Made the error message equal to "timeout", if the request timed out. (Bug #970)
This commit is contained in:
parent
3604d14896
commit
a40f141f23
@ -655,10 +655,10 @@ jQuery.extend({
|
|||||||
|
|
||||||
var status;
|
var status;
|
||||||
try {
|
try {
|
||||||
status = jQuery.httpSuccess( xml ) && isTimeout != "timeout" ?
|
status = isTimeout || (jQuery.httpSuccess( xml ) ?
|
||||||
s.ifModified && jQuery.httpNotModified( xml, s.url ) ? "notmodified" : "success" : "error";
|
s.ifModified && jQuery.httpNotModified( xml, s.url ) ? "notmodified" : "success" : "error");
|
||||||
// Make sure that the request was successful or notmodified
|
// Make sure that the request was successful or notmodified
|
||||||
if ( status != "error" ) {
|
if ( status != "error" && status != "timeout" ) {
|
||||||
// Cache Last-Modified header, if ifModified mode.
|
// Cache Last-Modified header, if ifModified mode.
|
||||||
var modRes;
|
var modRes;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user