mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-12 20:05:08 +00:00
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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user