| Issue 1321: | Refetch Events on ViewData change : Day does not display both eventSources | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Problem occurs when the view goes to the day view which should show both eventSources. Week view shows both eventsources successfully and as noted the month view only displays the first eventsource (see if statement for 2nd eventsource (calendar_appointments) ).
$(document).ready(function() {
$('#calendar').fullCalendar({
theme: true,
viewDisplay: function(view) {
$('#calendar').fullCalendar('refetchEvents');
},
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
weekmode: 'liquid',
slotMinutes:10,
minTime:'6:00am',
maxTime:'7:00pm',
eventClick: function(calEvent, jsEvent, view) {
if(calEvent.eventType == "appt")
{
appointmentDetails(calEvent, jsEvent, view);
}else{
eventScheduler(calEvent, jsEvent, view);
$(this).fullcalendar('refetchEvents');
}
},
eventSources: [
{
url:'controllers/router.php',
type: 'POST',
error: function(request){
var response = request.responseText;
if (response.indexOf("relog") > -1){
alert("Please login");
window.location = "../home.php";
}else{
alert('There was an error retrieving your events. Please try again later.');}
},
data:{
obj:'available_blocktimes',
dataFormat:'FullCalendar',
calAction:'FullCalendar'}
},
{
events: function(start, end, callback)
{
render_view = $("#calendar").fullCalendar("getView");
if(render_view.name == 'month')
{
callback("[]");
}else{
start= Math.round(start.getTime() / 1000);
end=Math.round(end.getTime() / 1000);
var router = "controllers/router.php";
$.getJSON(router,"obj=calendar_appointments&dataFormat=FullCalendar&calAction=FullCalendar&start="+start+"&end="+end, function(json){ callback(json);});
}
},
error: function(request){
var response = request.responseText;
if (response.indexOf("relog") > -1){
window.location = "../home.php";
}else{
alert('There was an error retrieving your events. Please try again later.');}
}
}]
});// end fullcalendar
Mar 1, 2012
#1
desireah...@gmail.com
Aug 15, 2013
(No comment was entered for this change.)
Status:
ReproTemp
Aug 25, 2013
This message is being bulk-sent to a number of issues, both [very] old and new.
I have been working on taming this issue tracker, which has gotten out of control after months of neglect. You are receiving this message because I could not successfully reproduce the bug you were reporting with a reasonable amount of effort. I have written some new bug-report guidelines to be used by all bug reports going forward:
http://arshaw.com/fullcalendar/wiki/Report-a-Bug/
Its salient point is that all bug reports should have an isolated demonstration, viewable online with a tool like JSFiddle.
If the bug you originally reported is still important to you, could you please first try the latest version of FullCalendar and see if it is fixed? If not, could you please file a NEW bug report that follows the new guidelines? This issue will not be monitored for further comments.
I'm sorry I have taken so long to respond to many of your request, and I'm sorry if this new procedure causes extra work for you. Going forward, the issue tracker will be much more of a well-oiled machine.
Again, if you must, PLEASE SUBMIT A *NEW* BUG REPORT (following the new guidelines) INSTEAD OF COMMENTING ON THIS ONE. Further comments on this report will be ignored. Thanks.
Status:
Invalid
Labels: -Type-Defect Type-Bug |
|
| ► Sign in to add a comment |