Improved the robustness of the response codes based upon what's in Dojo. (Ticket #14)
This commit is contained in:
parent
8f52a2e0e9
commit
c43e1e379d
|
@ -63,7 +63,8 @@ $.xml = function( type, url, data, ret ) {
|
||||||
$.xmlActive = 0
|
$.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 )
|
if ( onSuccess )
|
||||||
onSuccess( xml );
|
onSuccess( xml );
|
||||||
} else if ( onError ) {
|
} else if ( onError ) {
|
||||||
|
|
Loading…
Reference in a new issue