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). two table details calendar grid

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: feed 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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -