diff options
-rw-r--r-- | public/js/calendar.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/public/js/calendar.js b/public/js/calendar.js index 33fceb8..57d9095 100644 --- a/public/js/calendar.js +++ b/public/js/calendar.js @@ -11,17 +11,17 @@ $(function() { $(this).next().toggle('fast'); return false; }).next().hide(); -// $('.tabcal-cell a').each(function(i,a) { -// var hashpos = a.href.indexOf('#'); -// if (hashpos < 0) -// return true; -// var hash = a.href.slice(hashpos); -// if (!hash.startsWith('#event-')) -// return true; -// a.click(function() { -// show_event(hash); -// return false; -// }); -// }); -// hide_events(); + $('.tabcal-cell a').each(function(i,a) { + var hashpos = a.href.indexOf('#'); + if (hashpos < 0) + return true; + var hash = a.href.slice(hashpos); + if (!hash.startsWith('#event-')) + return true; + a.onclick = function() { + show_event(hash); + return true; + }; + }); + hide_events(); }); |