summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-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();