mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-15 18:28:51 +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() {
|
||||
|
||||
Reference in New Issue
Block a user