My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2350: Empty eventLimit popover if event start == end
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Nov 2014


Sign in to add a comment
 
Reported by samedii, Nov 10, 2014
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
Fiddle where the problem is resolved:
http://jsfiddle.net/3E8nk/814/

Seems to be related to end being before start.
Nov 15, 2014
Project Member #5 adamrs...@gmail.com
thanks
Summary: Empty eventLimit popover if event start == end (was: Empty popover (eventLimit))
Status: Accepted
Labels: Type-Bug
Nov 15, 2014
#6 samedii
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
#8 samedii
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
Project Member #9 adamrs...@gmail.com
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

Powered by Google Project Hosting