git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f52a2e
)
Improved the robustness of the response codes based upon what's in Dojo. (Ticket...
author
John Resig
<jeresig@gmail.com>
Sun, 18 Jun 2006 01:42:41 +0000
(
01:42
+0000)
committer
John Resig
<jeresig@gmail.com>
Sun, 18 Jun 2006 01:42:41 +0000
(
01:42
+0000)
ajax/ajax.js
patch
|
blob
|
history
diff --git
a/ajax/ajax.js
b/ajax/ajax.js
index
8e0f81f
..
b0a993c
100644
(file)
--- a/
ajax/ajax.js
+++ b/
ajax/ajax.js
@@
-63,7
+63,8
@@
$.xml = function( type, url, data, ret ) {
$.xmlActive = 0
}
- if ( xml.status && xml.status >= 200 && xml.status < 300 ) {
+ if ( ( xml.status && ( xml.status >= 200 && xml.status < 300 ) || xml.status == 304 ) ||
+ !xml.status && location.protocol == 'file:' ) {
if ( onSuccess )
onSuccess( xml );
} else if ( onError ) {