mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +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:
@@ -1,5 +1,9 @@
|
||||
2006-11-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/SchedulerUI.js: updated the list
|
||||
initialization code to use the new event management scheme, adding
|
||||
what was missing to be able to delete events and tasks again.
|
||||
|
||||
* UI/WebServerResources/MailerUI.js: added code to activate the
|
||||
"Get mails" button. Fixed a bug which prevented messages to be
|
||||
deleted.
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
xmlns:rsrc="OGo:url"
|
||||
xmlns:label="OGo:label"
|
||||
id="appointmentsList"
|
||||
multiselect="yes"
|
||||
onselectionchange="onAppointmentsSelectionChange();">
|
||||
multiselect="yes">
|
||||
<tr class="tableview"
|
||||
><td class="tbtv_headercell tbtv_subject_headercell"
|
||||
><var:component className="UIxSortableTableHeader"
|
||||
|
||||
@@ -12,9 +12,7 @@
|
||||
onclick="return onHideCompletedTasks(this);"
|
||||
/><var:string label:value="Hide completed tasks"
|
||||
/></label>
|
||||
<ul id="tasksList"
|
||||
onselectionchange="onTasksSelectionChange();"
|
||||
multiselect="yes">
|
||||
<ul id="tasksList" multiselect="yes">
|
||||
<var:foreach list="fetchCoreTasksInfos" item="currentTask"
|
||||
><var:if condition="shouldDisplayCurrentTask"
|
||||
><li var:id="currentTask.c_name"
|
||||
|
||||
@@ -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