From 399dd4cec578171ae56fb8b78f7f8827537db2aa Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 19 Apr 2016 17:39:57 +0000 Subject: [PATCH] Calendar planner view shows event title instead of timespan for events > 8 hours Now fixed for events spanning multiple days --- calendar/js/et2_widget_event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 80dc988f79..277282ccc7 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -411,7 +411,7 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten else if (this.getParent() && this.getParent().instanceOf(et2_calendar_planner_row)) { // Less than 8 hours is small - this.div.toggleClass('calendar_calEventSmall',this.options.value.end_m - this.options.value.start_m < 480); + this.div.toggleClass('calendar_calEventSmall',this.options.value.end.valueOf() - this.options.value.start.valueOf() < 28800000); }