Commit 31f22f24 authored by Ariel Flesler's avatar Ariel Flesler

jquery ajax: fixed #2865 and #2570. Not passing username to xml.open if it's...

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.
parent 5a92ec26
...@@ -276,7 +276,11 @@ jQuery.extend({ ...@@ -276,7 +276,11 @@ jQuery.extend({
var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
// Open the socket // 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 // Need an extra try/catch for cross domain requests in Firefox 3
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment