javascript - Json data not displaying correctly -
i have fullcalendar json data. shows "12a medical day jackson post". otherwise display fine. when change dates "start":"12/2/2015" 2015-2-12. 12a appen disappears.
the code fullcalendar used this
$(document).ready(function() { $('#calendar').fullcalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaweek' }, defaultdate: '2015-03-11', defaultview: 'month', selectable: false, selecthelper: false, select: function(start, end) { var title = prompt('event title:'); var eventdata; if (title) { eventdata = { title: title, start: start, end: end }; $('#calendar').fullcalendar('renderevent', eventdata, true); // stick? = true } $('#calendar').fullcalendar('unselect'); }, editable: true, eventlimit: true, // allow "more" link when many events eventmouseover: function(event, jsevent, view) { if (view.name !== 'agendaday') { $(jsevent.target).attr('title', event.title); } }, events:[ { "title":"medical day jackson post", "start":"12/2/2015", "end":"12/3/2015", "description":"jackson" },
by default shows time unless event allday
event. if allday
isn't specified, guesses , in case, guessed differently depending on date format.
so, either make allday
explicit in events, or stop time displaying on events timeformat: "",
1 of fullcalendar options.
Comments
Post a Comment