aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-05-15 13:45:09 +0000
committerAriel Flesler <aflesler@gmail.com>2008-05-15 13:45:09 +0000
commit31f22f244be7c37cc7a22f390d3483c9680b6b58 (patch)
treecf18bfc549cd569e6537bc15c10e673c3f6e0a5c
parent5a92ec263d8289d2b6d21bcbfe02910c47a6ea4a (diff)
downloadjquery-31f22f244be7c37cc7a22f390d3483c9680b6b58.tar.gz
jquery-31f22f244be7c37cc7a22f390d3483c9680b6b58.zip
jquery ajax: fixed #2865 and #2570. Not passing username to xml.open if it's null, or it open a login popup on some Opera's.
-rw-r--r--src/ajax.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index bf6c46498..1dc781477 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -276,7 +276,11 @@ jQuery.extend({
var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
// Open the socket
- xml.open(s.type, s.url, s.async, s.username, s.password);
+ // Passing null username, generates a login popup on Opera (#2865)
+ if( s.username )
+ xml.open(s.type, s.url, s.async, s.username, s.password);
+ else
+ xml.open(s.type, s.url, s.async);
// Need an extra try/catch for cross domain requests in Firefox 3
try {