diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-04-05 12:16:30 -0300 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2016-04-05 12:16:30 -0300 |
commit | 2714214eedff04de44c37ebae0cfa8ed7b9c4e44 (patch) | |
tree | a29018f630a6bf50e2eb0388ae97a970f8ed16e6 /public | |
parent | eddc905260e06794c1947689e681b3b3a635944e (diff) |
not pseudoclass seems to be unsupported by jquery
Diffstat (limited to 'public')
-rw-r--r-- | public/js/calendar.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/calendar.js b/public/js/calendar.js index 41b35d6..d3313af 100644 --- a/public/js/calendar.js +++ b/public/js/calendar.js @@ -1,5 +1,8 @@ $(function() { - $('.calendar-listing:not(expanded)>p').click(function() { + cal_list = $('.calendar-listing'); + if (cal_list.length && cal_list[0].classList.contains('expanded')) + return; + $('.calendar-listing>p').click(function() { $(this).next().toggle('fast'); return false; }).next().hide(); |