How could I modify the fullcalendar plugin so that this saves the different click methods dayClick
etc in a cookie? The next time this calendar is opened if would default to the user preference.
Already using the cookie plugin: https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js
Update of working cookie code following answer:
var calendarView = (!$.cookie('calendarDefaultView')) ? 'month' : $.cookie('calendarDefaultView');
$calendar.fullCalendar({
defaultView: calendarView,
viewDisplay: function(view){
$.cookie('calendarDefaultView', view.name, {expires:7, path: '/'});
},