Created
July 1, 2013 14:47
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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