From 3e83f6d6957f6a7bf8b1929b568967392c84b98b Mon Sep 17 00:00:00 2001 From: Remi Frazier Date: Wed, 13 Oct 2021 12:04:27 -0700 Subject: [PATCH] Added support for a second variant of `for` tags in elements --- js/hide_choice_by_event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/hide_choice_by_event.js b/js/hide_choice_by_event.js index 0647786..f685494 100644 --- a/js/hide_choice_by_event.js +++ b/js/hide_choice_by_event.js @@ -11,7 +11,8 @@ $(document).ready(function() { //hide option if we are on the right event if(setting.event.indexOf(current_event) != -1) { $('#label-' + field + '-' + setting.code).parent().hide(); //standard buttons - $('[for="opt-' + field + '_' + setting.code + '"]').parent().hide(); //enhanced buttons + $('[for="opt-' + field + '_' + setting.code + '"]').parent().hide(); //enhanced buttons variant 1 + $('[for="id-__chk__' + field + '_RC_' + setting.code + '"]').parent().hide(); //enhanced buttons variant 2 } } }