From 4004a0f7df2266d8c144e24aa8130b9e69835f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Betn=C3=A9r?= Date: Wed, 7 Jun 2006 06:54:24 +0000 Subject: [PATCH] Make prototype.js first test for XMLHttprequest object and then the IE active-x thingies. This forces IE 7 to use the native XMLHttprequest object. (and debugging on gecko browsers easier) --- admin-root/lib-js/prototype.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-root/lib-js/prototype.js b/admin-root/lib-js/prototype.js index e9ccd3c8..19a577cc 100644 --- a/admin-root/lib-js/prototype.js +++ b/admin-root/lib-js/prototype.js @@ -549,9 +549,9 @@ var $R = function(start, end, exclusive) { var Ajax = { getTransport: function() { return Try.these( + function() {return new XMLHttpRequest()}, function() {return new ActiveXObject('Msxml2.XMLHTTP')}, - function() {return new ActiveXObject('Microsoft.XMLHTTP')}, - function() {return new XMLHttpRequest()} + function() {return new ActiveXObject('Microsoft.XMLHTTP')} ) || false; },