Hi,
just tried to upgrad to 2.1.0-beta3 from fullcalendar-2.0.3
[using events function]
when i click the month or day buttons
the events function is being called (good behaviour)
but also a full page refresh is done (bad behaviour unlike stable version)
my configuration
$('#calendar').fullCalendar({
loading: function (bool) {
$('#loading').toggle(bool);
},
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
defaultView: "basicWeek",
theme: false,
editable: false,
timeFormat: 'H:mm',
lazyFetching: true,
events: function(start, end, timezone, callback) {
console.log("get events " + $('#calendar').fullCalendar('getView').name);
$.getJSON( "AdvAccountHandler.ashx",{
action: $("#ddlViews").val(),
stime: start.format("DD/MM/YYYY HH:mm:ss"),
etime: end.format("DD/MM/YYYY HH:mm:ss"),
artist: $("#ddlArtists").val() ,
channels: $("#ddlChannels").val()
})
.done(function( json ) {
console.dir(json);
callback(json);
})
.fail(function( jqxhr, textStatus, error ) {
var err = textStatus + ", " + error;
console.log( "get events error: " + err );
})
.always(function() {
});
},
eventRender: function(event, element) {
var html = "";
html = '<img style="float:<%=Resources.Resource.Align%>;padding:3px;width:70px;height:50px;" src="' + "../ws/ntt.ashx?action=channel_image&channel=" + event.channel.replace("&","%26") + '" />'
+ "<strong>" + event.channel + "</strong><br />"
+ '<span class="nttbold" title="' + event.day_plays + ' <%=Resources.Resource.BroadcastsDay%>, ' + event.night_plays + ' <%=Resources.Resource.BroadcastsNight%> ">' + event.plays + "</span> <%=Resources.Resource.Broadcasts%><br />"
+ '<span class="nttbold">' + event.unique_tracks + "</span> <%=Resources.Resource.Commercials%>"
element.html(html);
}
}
});
Mergedinto: 2254