(js,css) Style cancelled events in Calendar module

Fixes #2800
This commit is contained in:
Francis Lachapelle
2016-08-12 14:31:28 -04:00
parent 76eeef2541
commit ac6b60c4c9
3 changed files with 13 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
/* -*- Mode: javascript; indent-tabs-mode: nil; js-indent-level: 4; -*- */
var eventListFilter = 'view_today';
var taskListFilter = 'view_today';
@@ -2001,6 +2003,13 @@ function newBaseEventDIV(eventRep, event, eventText) {
eventCell.observe("click", onCalendarSelectEvent);
eventCell.observe("dblclick", Event.stop);
}
else if (event[3] == 0) {
// Event is cancelled
eventCell.observe("mousedown", listRowMouseDownHandler);
eventCell.observe("click", onCalendarSelectEvent);
eventCell.observe("click", onViewEvent);
innerDiv.addClassName('cancelled');
}
else {
// Status field is defined -- user can read event
eventCell.observe("mousedown", listRowMouseDownHandler);