diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-04-05 15:18:21 -0300 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2016-04-05 15:18:21 -0300 |
commit | f1f4193f8b8607084c0ac56a7ecffe2b56e8a68e (patch) | |
tree | a2fd0dde8df255c1ea739b389c48ef659d7e2682 /public/js | |
parent | aee062c1e8edd819b125e671ec4d0bf89b4c0282 (diff) |
Try javascript again
Diffstat (limited to 'public/js')
-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(); }); |