My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2218: repeated events not displaying correctly
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Aug 2014


Sign in to add a comment
 
Reported by newonehe...@gmail.com, Jul 29, 2014
I have problems displaying some repeated events in the calendar by date of the week. If an events starts the first Monday of the month. And ends the last day of the month, it is displaying out on the whole month. I want the repeated events to display separately on each day they are being repeated.

    $(document).ready(function () {
            var date = new Date();
            var d = date.getDate();
            var m = date.getMonth();
            var y = date.getFullYear();
            var lastView;

            $('#calendar').fullCalendar({
                eventClick: function (calEvent) {
                    var eventDesc = HTMLDecode(calEvent.description);
                    var start = $.fullCalendar.formatDate(calEvent._start, 'h:mm tt');
                    var starttime = calEvent.starttime;
                    var endtime = calEvent.endtime;
                    var end = $.fullCalendar.formatDate(calEvent._end, 'h:mm tt');
                    var eDate = $.fullCalendar.formatDate(calEvent._start, 'MM/dd/yyyy');
                    var repeatdays = calEvent.repeatdays;
                    var repeated = calEvent.repeated;                  

                    if (repeated == true) {
                        var fancyContent = ('<h2>Training Details</h2><hr /> <div id="prac" class="pracform"> <label><b>Event: </b></label>' +
                            calEvent.title + '<br>' +
                            '<label><b>Date: </b></label>' + eDate + '<br>' +
                            '<label><b>Start Time: </b></label>' + starttime + '<br>' +
                            '<label><b>End Time: </b></label>' + endtime + '<br>' +
                            '<label><b>Description: </b></label>' + '<div class="event_desc">' + eventDesc + '</div></div>');
                    }
                    else {
                        var fancyContent = ('<h2>Training Details</h2><hr /> <div id="prac" class="pracform"> <label><b>Event: </b></label>' +
                            calEvent.title + '<br>' +
                            '<label><b>Date: </b></label>' + eDate + '<br>' +
                            '<label><b>Start Time: </b></label>' + starttime + '<br>' +
                            '<label><b>End Time: </b></label>' + endtime + '<br>' +
                            '<label><b>Description: </b></label>' + '<div class="event_desc">' + eventDesc + '</div></div>');
                    }

                    $.fancybox({
                        'content': fancyContent,
                        'width': '750',
                        'height': 'auto',
                        'autoDimensions': false,
                        'type': 'iframe',
                        'autoSize': false
                    });
                    return false;
                },

                header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
                },

                defaultView: 'month',
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay',
                events: 'Events.ashx',
                timeFormat: 'h(:mm)tt ', // uppercase H for 24-hour clock
                weekMode: 'liquid'

            });           

        });


recur event.png
18.4 KB   View   Download
Aug 7, 2014
Project Member #1 adamrs...@gmail.com
please follow the bug report instructions and post a JSFiddle of your problem:
http://arshaw.com/fullcalendar/wiki/Reporting-Bugs/

then, reopen a new issue with the JSFiddle link
Status: Invalid
Sign in to add a comment

Powered by Google Project Hosting