jquery ajax: changing a set of &&/|| for ?/:.
This commit is contained in:
parent
3c5c3dffaa
commit
042e51e731
|
@ -327,9 +327,9 @@ jQuery.extend({
|
|||
ival = null;
|
||||
}
|
||||
|
||||
status = isTimeout == "timeout" && "timeout" ||
|
||||
!jQuery.httpSuccess( xhr ) && "error" ||
|
||||
s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||
|
||||
status = isTimeout == "timeout" ? "timeout" :
|
||||
!jQuery.httpSuccess( xhr ) ? "error" :
|
||||
s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
|
||||
"success";
|
||||
|
||||
if ( status == "success" ) {
|
||||
|
|
Loading…
Reference in a new issue