My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2256: 2.1.0-beta3 month/week/day buttons are causing full page refresh
2 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 2254
Owner:  ----
Closed:  Aug 2014


Sign in to add a comment
 
Reported by mediafor...@gmail.com, Aug 24, 2014
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);
	}

	}
});
Aug 24, 2014
Project Member #1 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 2254
Aug 25, 2014
#2 nivma...@gmail.com
meanwhile to resolve do this after calender init

$(".fc-button").attr("type", "button");

Sign in to add a comment

Powered by Google Project Hosting