Skip to content

Instantly share code, notes, and snippets.

@scottsappen
Created July 1, 2013 14:47
Show Gist options
  • Save scottsappen/5901472 to your computer and use it in GitHub Desktop.
Save scottsappen/5901472 to your computer and use it in GitHub Desktop.
Formatting HTML that comes back with the return JSON feed. Full calendar implementation http://ssbits.wordpress.com/category/javascript-snippets/calendar/
1. Formatting HTML that comes back with the return JSON feed. When setting up your calendar object, you can define some methods.
eventRender: function (event, element) {
element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());
},
2. Changing the border of an event for mouse events.
eventMouseover: function (event, element, view) {
$(this).css('border', '3px dashed #c70000');
},
eventMouseout: function (event, element, view) {
$(this).css('border', '0px');
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment