Skip to content

Commit

Permalink
(js,css) Style cancelled events in Calendar module
Browse files Browse the repository at this point in the history
Fixes #2800
  • Loading branch information
cgx committed Aug 12, 2016
1 parent 76eeef2 commit ac6b60c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -6,6 +6,7 @@ New features

Enhancements
- [web] expunge drafts mailbox when a draft is sent and deleted
- [web] style cancelled events in Calendar module (#2800)
- [web] updated CKEditor to version 4.5.10

Bug fixes
Expand Down
3 changes: 3 additions & 0 deletions UI/WebServerResources/SchedulerUI.css
Expand Up @@ -1365,6 +1365,9 @@ DIV.eventInside.declined
{ -moz-opacity: 0.4;
opacity: 0.4; }

DIV.eventInside.cancelled .text
{ text-decoration: line-through; }

/* event DnD */
DIV.event DIV.topDragGrip,
DIV.event DIV.bottomDragGrip
Expand Down
9 changes: 9 additions & 0 deletions UI/WebServerResources/SchedulerUI.js
@@ -1,3 +1,5 @@
/* -*- Mode: javascript; indent-tabs-mode: nil; js-indent-level: 4; -*- */

var eventListFilter = 'view_today';
var taskListFilter = 'view_today';

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ac6b60c

Please sign in to comment.