From 2714214eedff04de44c37ebae0cfa8ed7b9c4e44 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 5 Apr 2016 12:16:30 -0300 Subject: not pseudoclass seems to be unsupported by jquery --- public/js/calendar.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.1