From e4acc2653a480ef7604875376dcae6c269f5fa41 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Thu, 18 Apr 2019 21:05:43 +0200 Subject: [PATCH] make interactive fieldsets js util work with checkboxes --- static/js/utils/form.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/static/js/utils/form.js b/static/js/utils/form.js index cb7cdd9f9..e7e6401aa 100644 --- a/static/js/utils/form.js +++ b/static/js/utils/form.js @@ -124,8 +124,10 @@ * Selector for the input that this fieldset watches for changes * data-conditional-value: string * The value the conditional input needs to be set to for this fieldset to be shown + * Can be omitted if conditionalInput is a checkbox * * Example usage: + * ## example with text input * *
...
*
...
@@ -135,6 +137,11 @@ *