summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-05 12:16:30 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-05 12:16:30 -0300
commit2714214eedff04de44c37ebae0cfa8ed7b9c4e44 (patch)
treea29018f630a6bf50e2eb0388ae97a970f8ed16e6 /public/js
parenteddc905260e06794c1947689e681b3b3a635944e (diff)
not pseudoclass seems to be unsupported by jquery
Diffstat (limited to 'public/js')
-rw-r--r--public/js/calendar.js5
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();