Mantis 98: Javascript error in IE when opening contacts popup window from mail module

Monotone-Parent: afa8a9fe095d6de052bd0ce6faa3412737247666
Monotone-Revision: b0b741447cee83cc3c6abb1efe8e10d41ca9b746

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-08-18T16:27:28
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-08-18 16:27:28 +00:00
parent 3687660749
commit 8a6457e30c
3 changed files with 369 additions and 24 deletions
+1 -24
View File
@@ -285,28 +285,7 @@ function refreshFolderByType(type) {
}
function createHTTPClient() {
// http://developer.apple.com/internet/webcontent/xmlhttpreq.html
if (typeof XMLHttpRequest != "undefined")
return new XMLHttpRequest();
try { return new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { }
try { return new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { }
return null;
}
function appendDifferentiator(url) {
var url_nocache = url;
var position = url.indexOf('?', 0);
if (position < 0)
url_nocache += '?';
else
url_nocache += '&';
url_nocache += 'differentiator=' + Math.floor(Math.random()*50000);
return url_nocache;
return new XMLHttpRequest();
}
function onAjaxRequestStateChange(http) {
@@ -357,8 +336,6 @@ function getContrastingTextColor(bgColor) {
}
function triggerAjaxRequest(url, callback, userdata, content, headers) {
//url = appendDifferentiator(url);
var http = createHTTPClient();
if (http) {
activeAjaxRequests++;