X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=1dc781477d8df38a98f2a9ae39a82417a71a2699;hb=31f22f244be7c37cc7a22f390d3483c9680b6b58;hp=1a32b45dbba97bec1f29c9789cbcc6592be68c55;hpb=06eb4d3223c4eee4223fbb084033dadfeae12f34;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 1a32b45..1dc7814 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -141,6 +141,7 @@ jQuery.extend({ }, ajaxSettings: { + url: location.href, global: true, type: "GET", timeout: 0, @@ -275,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 {