mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 14:28:52 +00:00
Monotone-Parent: d53ae5e9542f266cda31bf64e2f06712c798dfdc
Monotone-Revision: 6c2b27000ef5daddb97c24871e9fb52a185b3d59 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-24T21:14:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -154,18 +154,11 @@ function appointmentsListCallback(http)
|
||||
|
||||
if (http.readyState == 4
|
||||
&& http.status == 200) {
|
||||
// log ("babla");
|
||||
document.dateSelectorAjaxRequest = null;
|
||||
// log ("babla");
|
||||
div.innerHTML = http.responseText;
|
||||
// log ("babla");
|
||||
|
||||
// log ("received " + http.callbackData);
|
||||
var params = parseQueryParameters(http.callbackData);
|
||||
sortKey = params["sort"];
|
||||
sortOrder = params["desc"];
|
||||
|
||||
// log ("sorting = " + sortKey + sortOrder);
|
||||
}
|
||||
else
|
||||
log ("ajax fuckage");
|
||||
@@ -342,13 +335,13 @@ function onAppointmentsSelectionChange()
|
||||
}
|
||||
|
||||
function _loadAppointmentHref(href) {
|
||||
if (this.document.appointmentsListAjaxRequest) {
|
||||
this.document.appointmentsListAjaxRequest.aborted = true;
|
||||
this.document.appointmentsListAjaxRequest.abort();
|
||||
if (document.appointmentsListAjaxRequest) {
|
||||
document.appointmentsListAjaxRequest.aborted = true;
|
||||
document.appointmentsListAjaxRequest.abort();
|
||||
}
|
||||
url = ApplicationBaseURL + href;
|
||||
// log ("url: " + url);
|
||||
this.document.appointmentsListAjaxRequest
|
||||
|
||||
document.appointmentsListAjaxRequest
|
||||
= triggerAjaxRequest(url, appointmentsListCallback, href);
|
||||
|
||||
return false;
|
||||
@@ -356,18 +349,14 @@ function _loadAppointmentHref(href) {
|
||||
|
||||
function onHeaderClick(node)
|
||||
{
|
||||
var href = node.getAttribute("href");
|
||||
|
||||
return _loadAppointmentHref(href);
|
||||
return _loadAppointmentHref(node.getAttribute("href"));
|
||||
}
|
||||
|
||||
function refreshAppointments() {
|
||||
var href = ("aptlist?desc=" + sortOrder
|
||||
+ "&sort=" + sortKey
|
||||
+ "&day=" + currentDay
|
||||
+ "&filterpopup=" + listFilter);
|
||||
|
||||
return _loadAppointmentHref(href);
|
||||
return _loadAppointmentHref("aptlist?desc=" + sortOrder
|
||||
+ "&sort=" + sortKey
|
||||
+ "&day=" + currentDay
|
||||
+ "&filterpopup=" + listFilter);
|
||||
}
|
||||
|
||||
function onListFilterChange() {
|
||||
|
||||
@@ -99,7 +99,7 @@ function submitMeeting(thisForm) {
|
||||
|
||||
thisForm.submit();
|
||||
|
||||
opener.window.refreshAppointments();
|
||||
window.opener.setTimeout('refreshAppointments();', 200);
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
||||
@@ -144,23 +144,6 @@ function sanitizeMailTo(dirtyMailTo) {
|
||||
return mailto;
|
||||
}
|
||||
|
||||
/* escaping */
|
||||
|
||||
function escapeHTML(s) {
|
||||
s = s.replace(/&/g, "&");
|
||||
s = s.replace(/</g, "<");
|
||||
s = s.replace(/>/g, ">");
|
||||
s = s.replace(/\"/g, """);
|
||||
return s;
|
||||
}
|
||||
function unescapeHTML(s) {
|
||||
s = s.replace(/</g, "<");
|
||||
s = s.replace(/>/g, ">");
|
||||
s = s.replace(/"/g, '"');
|
||||
s = s.replace(/&/g, "&");
|
||||
return s;
|
||||
}
|
||||
|
||||
function createHTTPClient() {
|
||||
// http://developer.apple.com/internet/webcontent/xmlhttpreq.html
|
||||
if (typeof XMLHttpRequest != "undefined")
|
||||
@@ -170,11 +153,12 @@ function createHTTPClient() {
|
||||
catch (e) { }
|
||||
try { return new ActiveXObject("Microsoft.XMLHTTP"); }
|
||||
catch (e) { }
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function triggerAjaxRequest(url, callback, userdata) {
|
||||
this.http = createHTTPClient();
|
||||
var http = createHTTPClient();
|
||||
|
||||
activeAjaxRequests += 1;
|
||||
document.animTimer = setTimeout("checkAjaxRequestsState();", 200);
|
||||
|
||||
Reference in New Issue
Block a user