My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 115: change view on event
2 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by var1...@gmail.com, Oct 5, 2009
Can I change from the month view to the day view on the dayClick event????

Thanks,
Vicente
Oct 6, 2009
#2 var1...@gmail.com
I try that solution and finaly is near working with this code:

$('#calendar').fullCalendar({
			dayClick: function(date, view) {
     				$('#calendar').fullCalendar('changeView', 'basicDay');
				$('#calendar').fullCalendar('gotoDate', date);
			},
			theme: true,
			
			editable: false,
			
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,basicWeek,basicDay'
			}
		});

The problem now is that "$('#calendar').fullCalendar('gotoDate', date);" freezes
Firefox. I'm using Red Hat Enterprise Linux 5 with Firefox 3.0.10.

Thanks.
Oct 13, 2009
#3 snh9...@gmail.com
This is marked as closed, but the poster never got a response to his second question,
which also happens to be the issue I am having.

$('#calendar').fullCalendar('gotoDate',date);

This causes the browser to become unresponsive. I've tested in Firefox 3.0.10 and IE7
and I am running Windows Vista.

Oct 13, 2009
Project Member #4 adamrs...@gmail.com
snh9905, i am sorry, have been very busy trying to get 1.4 going.
this is a bad bug. i will look at it when i get home from work today and try to fix it.
Status: Accepted
Oct 13, 2009
Project Member #5 adamrs...@gmail.com
var1983,
I am VERY sorry for giving you such a bad initial example. it has many things wrong 
with it:

first the way i was calling the methods was incorrect:
NOT .gotoDate(...)
but rather .fullCalendar('gotoDate',...))

next, i gave a bad example of the gotoDate method. at the time of my old comment's 
writing, gotoDate only accepted *3* arguments, a year/month/date. Giving 1 Date 
argument wouldn't work.

however, as of 1.3.2 (just released) gotoDate can now also accept 1 Date argument. 
thanks for the inspiration.

the freezing issue... this was related to the wrong arguments you had for gotoDate. 
However, the browser still shouldn't freeze. i addressed this bug in 1.3.2.

I deleted my previous comment to avoid confusing people who browse this thread in the 
future. sorry about that, i must have been drunk when i wrote it
Status: Fixed
Oct 13, 2009
Project Member #6 adamrs...@gmail.com
working code for the original question (must have FullCalendar 1.3.2):

$('#calendar').fullCalendar({
	dayClick: function(date, view) {
     		$('#calendar')
     		     	.fullCalendar('changeView', 'basicDay')
     		     	.fullCalendar('gotoDate', date);
	},
	header: {
		left: 'prev,next today',
		center: 'title',
		right: 'month,basicWeek,basicDay'
	}
});

thanks again var1918 and snh9905
Oct 14, 2009
#7 snh9...@gmail.com
Thank you for the quick response! I will try this today.
Oct 14, 2009
#8 var1...@gmail.com
Thank you! Now is working :)
Oct 14, 2009
#9 snh9...@gmail.com
Working for me, too. Thank you! You are fast!
Aug 13, 2013
Project Member #10 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #11 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting