I want my fullcalendar to remember its state. I have found the fix for the stand-alone version of fullcalendar, however, I wasn't able to implement this into the drupal version of fullcalendar. See below.

stackoverflow:
http://stackoverflow.com/questions/12818744/fullcalendar-with-cookie-not...

fiddle:
http://jsfiddle.net/ECQA6/

Basically we only have to add two lines of code and include the cookie script, I don't know where and how (possibly in fullcalendar.fullcalendar.js)

these are the lines of code

defaultView: $.cookie('fullcalendar_defaultView') || 'agendaDay',
viewDisplay: function(view) { $.cookie('fullcalendar_defaultView', view.name); },

Anyone done this before?