From 7642341b2ef7d976e792f6c3c5a337f9d8b2ed4a Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 29 Apr 2021 15:34:46 +0200 Subject: [PATCH] fix checkbox labels when removing their optional fields --- htdocs/lib/settings/OptionalSection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/settings/OptionalSection.js b/htdocs/lib/settings/OptionalSection.js index 6c4ce74..16eff54 100644 --- a/htdocs/lib/settings/OptionalSection.js +++ b/htdocs/lib/settings/OptionalSection.js @@ -19,7 +19,7 @@ $.fn.optionalSection = function(){ var group = $(e.target).parents('.form-group') group.find('input, select').prop('disabled', true); $optionalInputs.append(group); - var $label = group.find('> label'); + var $label = group.find('label'); var $option = $(''); $select.append($option);