| Issue 2350: | Empty eventLimit popover if event start == end | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Debug template with the json gist provided by arshaw: http://jsfiddle.net/elpmelo/100f7fap/2/ Using newer fullcalendar (2.1.1), same problem: http://jsfiddle.net/3E8nk/807/
Nov 11, 2014
#3
samedii
Nov 15, 2014
thanks
Summary:
Empty eventLimit popover if event start == end
(was: Empty popover (eventLimit))
Status: Accepted Labels: Type-Bug
Nov 15, 2014
The problem is that if allDay==true then if end is set to something other than a whole number of days plus start, it won't be shown (on the partial day). http://jsfiddle.net/3E8nk/835/
Nov 15, 2014
This fixed the problem for me, maybe it will help when debugging.
function emptyPopoverFix(event) {
if(event.allDay) {
//if diff not multiple of days then not shown in popover
var diff = event.end.diff(event.start, 'days');
if(diff === 0)
event.end = event.start.clone().add(1, 'days');
if(diff !== Math.ceil(diff))
event.end = event.start.clone().add(Math.ceil(diff), 'days');
}
}
Nov 25, 2014
this problem is fixed in v2.2.3. If the event end date is invalid (meaning the end is less than or equal to the start), it will assumed to be null and then defaultAllDayEventDuration and defaultTimedEventDuration will take over. Then, the events in the popup will render correctly.
Status:
Released
|
|
| ► Sign in to add a comment |