mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 07:35:39 +00:00
Monotone-Parent: f5a202f926a2d73ac9d25fd623999b41d3cd2fa6
Monotone-Revision: 98d2dca0548783ca240a264a33a0b24e7b1f868f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-25T20:49:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -29,14 +29,41 @@ function editEvent() {
|
||||
var list = $("appointmentsList");
|
||||
var nodes = list.getSelectedRowsId();
|
||||
|
||||
if (nodes.length > 0) {
|
||||
var row = nodes[0];
|
||||
_editEventId(row);
|
||||
}
|
||||
if (nodes.length > 0)
|
||||
_editEventId(nodes[0]);
|
||||
|
||||
return false; /* stop following the link */
|
||||
}
|
||||
|
||||
function deleteEvent() {
|
||||
var list = $("appointmentsList");
|
||||
var nodes = list.getSelectedRowsId();
|
||||
|
||||
if (nodes.length > 0) {
|
||||
if (confirm(labels["appointmentDeleteConfirmation"])) {
|
||||
var urlstr = ApplicationBaseURL + nodes[0] + "/delete";
|
||||
document.deleteEventAjaxRequest = triggerAjaxRequest(urlstr,
|
||||
deleteEventCallback,
|
||||
nodes[0]);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function deleteEventCallback(http)
|
||||
{
|
||||
if (http.readyState == 4
|
||||
&& http.status == 200) {
|
||||
document.deleteEventAjaxRequest = null;
|
||||
var node = $(http.callbackData);
|
||||
log ("deleteEventCallback: " + node);
|
||||
node.parentNode.removeChild(node);
|
||||
}
|
||||
else
|
||||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function editDoubleClickedEvent(node)
|
||||
{
|
||||
var id = node.getAttribute("id");
|
||||
@@ -45,6 +72,13 @@ function editDoubleClickedEvent(node)
|
||||
return false;
|
||||
}
|
||||
|
||||
function onSelectAll() {
|
||||
var list = $("appointmentsList");
|
||||
list.selectRowsMatchingClass("appointmentRow");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function displayAppointment(sender) {
|
||||
var aptId = sender.getAttribute("aptId");
|
||||
var urlstr = ApplicationBaseURL + aptId + "/view";
|
||||
@@ -125,6 +159,9 @@ function onCalendarGotoDay(node)
|
||||
|
||||
function gotoToday()
|
||||
{
|
||||
currentDay = '';
|
||||
currentCalendarDay = '';
|
||||
|
||||
changeCalendarDisplay();
|
||||
changeDateSelectorDisplay();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user