mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-07 11:29:43 +00:00
Monotone-Parent: 4945bac92c07f3415fdb724d05d69bdbf029c39d
Monotone-Revision: eab1666fe69cee8d23192a1c3ce06a584278bb13 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-13T22:31:41 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -111,6 +111,8 @@ function deleteEvent()
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
window.alert("no selection");
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -250,6 +252,9 @@ function appointmentsListCallback(http)
|
||||
var params = parseQueryParameters(http.callbackData);
|
||||
sortKey = params["sort"];
|
||||
sortOrder = params["desc"];
|
||||
var list = $("appointmentsList");
|
||||
list.addEventListener("selectionchange",
|
||||
onAppointmentsSelectionChange, true);
|
||||
configureSortableTableHeaders();
|
||||
}
|
||||
else
|
||||
@@ -264,6 +269,9 @@ function tasksListCallback(http)
|
||||
&& http.status == 200) {
|
||||
document.tasksListAjaxRequest = null;
|
||||
div.innerHTML = http.responseText;
|
||||
var list = $("tasksList");
|
||||
list.addEventListener("selectionchange",
|
||||
onTasksSelectionChange, true);
|
||||
if (http.callbackData) {
|
||||
var selectedNodesId = http.callbackData;
|
||||
for (var i = 0; i < selectedNodesId.length; i++)
|
||||
@@ -505,14 +513,14 @@ function onAppointmentContextMenuHide(event)
|
||||
}
|
||||
|
||||
function onAppointmentsSelectionChange() {
|
||||
listOfSelection = $("appointmentsList");
|
||||
listOfSelection.removeClassName("_unfocused");
|
||||
listOfSelection = this;
|
||||
this.removeClassName("_unfocused");
|
||||
$("tasksList").addClassName("_unfocused");
|
||||
}
|
||||
|
||||
function onTasksSelectionChange() {
|
||||
listOfSelection = $("tasksList");
|
||||
listOfSelection.removeClassName("_unfocused");
|
||||
listOfSelection = this;
|
||||
this.removeClassName("_unfocused");
|
||||
$("appointmentsList").addClassName("_unfocused");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user