Hello !
I have a problem with scheduler.setCurrentView () function.
My goal is that when I am in the month view, when I click on the day number, the calendar displays the week of the day.
So I have my function:
scheduler.templates.month_day = function(date) {
return '<a class="number_day_month_view" onClick="go_to_week(\'' + date + '\')">' + date.getDate() + '</a>';
};
And the go-to_week function here:
function go_to_week(date) {
scheduler.setCurrentView(date, 'week');
}
This code works but then I can not change the day / week / month with two arrows.
In the javascript console the error is : TypeError: a.getDay is not a function.
For informations, the button “today” works perfectly.
Thank you !