From 23e8e3c83a64103ae42363bce6c69bfe62b70a8b Mon Sep 17 00:00:00 2001 From: Ron Barack Date: Wed, 23 Oct 2019 23:14:32 +0200 Subject: [PATCH] Update bmlt_meeting_list.js --- js/bmlt_meeting_list.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/js/bmlt_meeting_list.js b/js/bmlt_meeting_list.js index 8292a05..f3a7acb 100644 --- a/js/bmlt_meeting_list.js +++ b/js/bmlt_meeting_list.js @@ -400,7 +400,7 @@ var $ml = jQuery.noConflict $ml('.user_defined_headings').hide(); if (meeting_sort_val === 'user_defined') { $ml('.user_defined_headings').show(); - if ($ml("#heading2").val()!='') { + if ($ml("#subgrouping").val()!='') { user_defined_sub = true; } } @@ -443,19 +443,32 @@ var $ml = jQuery.noConflict $ml('.user_defined_headings').hide(); if (meeting_sort_val === 'user_defined') { $ml('.user_defined_headings').show(); - if ($ml("#heading2").val()!='') { + if ($ml("#subgrouping").val()!='') { user_defined_sub = true; } } if (meeting_sort_val == 'weekday_area' || meeting_sort_val == 'weekday_city' || meeting_sort_val == 'weekday_county' - || meeting_sort_val == 'state') { + || meeting_sort_val == 'state' + || user_defined_sub) { $ml('.show_subheader').show(); } else { $ml('.show_subheader').hide(); } }); + $ml("#subgrouping").click(function() { + var user_defined_sub = false; + $ml('.user_defined_headings').hide(); + if (meeting_sort_val === 'user_defined') { + $ml('.user_defined_headings').show(); + if ($ml("#subgrouping").val()!='') { + $ml('.show_subheader').show(); + } else { + $ml('.show_subheader').hide(); + } + } + }); var time_clock_val = $ml('input[name=time_clock]:checked').val(); if (time_clock_val == '24') { $ml('#option3').hide();