mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-01-21 07:40:23 +01:00
fix checkbox labels when removing their optional fields
This commit is contained in:
parent
29bce9e07a
commit
7642341b2e
|
|
@ -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 = $('<option value="' + group.data('field') + '">' + $label.text() + '</option>');
|
||||
$select.append($option);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue