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 (from parent 1:
5a92ec2
)
jquery ajax: fixed #2865 and #2570. Not passing username to xml.open if it's null...
author
Ariel Flesler
<aflesler@gmail.com>
Thu, 15 May 2008 13:45:09 +0000
(13:45 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Thu, 15 May 2008 13:45:09 +0000
(13:45 +0000)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
bf6c464
..
1dc7814
100644
(file)
--- 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
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 {
// Need an extra try/catch for cross domain requests in Firefox 3
try {