Calendar planner view shows event title instead of timespan for events > 8 hours

Now fixed for events spanning multiple days
This commit is contained in:
Nathan Gray 2016-04-19 17:39:57 +00:00
parent a8e91c5ac8
commit 399dd4cec5

View File

@ -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)) else if (this.getParent() && this.getParent().instanceOf(et2_calendar_planner_row))
{ {
// Less than 8 hours is small // 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);
} }