javascript - Duplicate events with fullcalendar function-generated events -
using fullcalendar, i'm generating event objects xml feed using events function.
problem
in month view, each event appears on calendar twice (two <td>
s per event in feed).
what i've tried
i've literally started on copying example page, modifying use real xml feed:
$("#calendar").fullcalendar({ events: function(start, end, timezone, callback) { $.ajax({ url: settings.feeduri, datatype: "xml", success: function(doc) { var events = []; $(doc).find("buyout").each(function() { events.push({ title: $(this).find("title").text(), start: $(this).find("date").text() + "t" + $(this).find("starttime").text() + ":00z", }); }); callback(events); } }); } });
at first glance, appears problem can "solved" removing
<td>s
have class:$(".fc-event-container").remove()
. obviously, crufty , have no idea impact have in future, i'd prefer not generate duplicates begin with. plus, duplicates re-appear 1 switches month view day or week.- i've been through virtually of documentation , can find here on so.
- i've triple-checked feed sure contains no duplicate elements. here's structure:
thanks much!
the solution problem turned out upgrading jquery 1.12 (recommended @ jquery.org if need support ie8) jquery 2.1.3. discover requirement, had @ plugin author's jsbin link on support page or open jquery.min.js file came download see version number in comments. far have seen, there no mention on fullcalendar.io pages of dependency or of fact calendar isn't suitable still supporting ie8.
Comments
Post a Comment