mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user