Monotone-Parent: 9a0e8d7545284ad8801b490d2c5baf6898323af9

Monotone-Revision: bd568f37dda7cb0476f9a3598cfd5af819e9784f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-01-30T13:50:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-01-30 13:50:52 +00:00
parent d9eda79696
commit dfc0dae067
2 changed files with 26 additions and 1 deletions
+3 -1
View File
@@ -687,7 +687,6 @@ TABLE.monthOverview DIV.appointmentInside
width: auto;
position: static; }
DIV.daysView > DIV.hours
{ position: absolute;
border: 0px;
@@ -834,6 +833,9 @@ DIV.appointments > DIV.appointment
right: 0px;
padding: 0px; }
DIV[class~="appointment"]._selected > DIV.appointmentInside
{ background-color: #ffa !important; }
DIV.appointment > DIV
{ position: absolute;
overflow: hidden;
+23
View File
@@ -3,6 +3,7 @@ var sortKey = '';
var listFilter = 'view_today';
var listOfSelection = null;
var selectedCalendarCell;
var hideCompletedTasks = 0;
@@ -57,6 +58,9 @@ function editEvent() {
for (var i = 0; i < nodes.length; i++)
_editEventId(nodes[i].getAttribute("id"),
nodes[i].getAttribute("owner"));
} else if (selectedCalendarCell) {
_editEventId(selectedCalendarCell.getAttribute("aptCName"),
selectedCalendarCell.getAttribute("owner"));
}
return false; /* stop following the link */
@@ -108,6 +112,18 @@ function deleteEvent()
}
}
}
else if (selectedCalendarCell) {
var label = labels["appointmentDeleteConfirmation"].decodeEntities();
if (confirm(label)) {
if (document.deleteEventAjaxRequest) {
document.deleteEventAjaxRequest.aborted = true;
document.deleteEventAjaxRequest.abort();
}
eventsToDelete.push([selectedCalendarCell.getAttribute("aptCName")]);
ownersOfEventsToDelete.push(selectedCalendarCell.getAttribute("owner"));
_batchDeleteEvents();
}
}
else
window.alert("no selection");
@@ -379,6 +395,8 @@ function changeCalendarDisplay(time, newView)
{
var url = ApplicationBaseURL + ((newView) ? newView : currentView);
selectedCalendarCell = null;
var day = null;
var hour = null;
if (time) {
@@ -742,6 +760,11 @@ function onCalendarSelectAppointment() {
list.deselectAll();
var aptCName = this.getAttribute("aptCName");
listOfSelection = null;
if (selectedCalendarCell)
selectedCalendarCell.deselect();
this.select();
selectedCalendarCell = this;
var row = $(aptCName);
if (row) {
var div = row.parentNode.parentNode.parentNode;