Skip to content
Permalink
Browse files

Made the error message equal to "timeout", if the request timed out. …

…(Bug #970)
  • Loading branch information
jeresig committed Jul 20, 2007
1 parent 3604d14 commit a40f141f23a3e3addcfae71676ff187f139eb8cb
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/ajax/ajax.js
@@ -655,10 +655,10 @@ jQuery.extend({

var status;
try {
status = jQuery.httpSuccess( xml ) && isTimeout != "timeout" ?
s.ifModified && jQuery.httpNotModified( xml, s.url ) ? "notmodified" : "success" : "error";
status = isTimeout || (jQuery.httpSuccess( xml ) ?
s.ifModified && jQuery.httpNotModified( xml, s.url ) ? "notmodified" : "success" : "error");
// Make sure that the request was successful or notmodified
if ( status != "error" ) {
if ( status != "error" && status != "timeout" ) {
// Cache Last-Modified header, if ifModified mode.
var modRes;
try {

0 comments on commit a40f141

Please sign in to comment.
You can’t perform that action at this time.