| Issue 115: | change view on event | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Can I change from the month view to the day view on the dayClick event???? Thanks, Vicente
Oct 13, 2009
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
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
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
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
Thank you for the quick response! I will try this today.
Oct 14, 2009
Thank you! Now is working :)
Oct 14, 2009
Working for me, too. Thank you! You are fast!
Aug 13, 2013
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |
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.