mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Bugfix for feature selection with radio buttons
This commit is contained in:
parent
f9ee83d52e
commit
12636365fc
1 changed files with 3 additions and 3 deletions
|
@ -152,13 +152,13 @@ Features.prototype.updateData = function (featureElement) {
|
||||||
var group = featureElement.attr('name');
|
var group = featureElement.attr('name');
|
||||||
var controlElements = $('input[name="' + group + '"]');
|
var controlElements = $('input[name="' + group + '"]');
|
||||||
var selectedBit = controlElements.filter(':checked').val();
|
var selectedBit = controlElements.filter(':checked').val();
|
||||||
|
var thisFeature = this;
|
||||||
controlElements.each(function() {
|
controlElements.each(function() {
|
||||||
var bit = $(this).val();
|
var bit = $(this).val();
|
||||||
if (selectedBit === bit) {
|
if (selectedBit === bit) {
|
||||||
this._featureMask = bit_set(BF_CONFIG.this._featureMask, bit);
|
thisFeature._featureMask = bit_set(thisFeature._featureMask, bit);
|
||||||
} else {
|
} else {
|
||||||
this._featureMask = bit_clear(this._featureMask, bit);
|
thisFeature._featureMask = bit_clear(thisFeature._featureMask, bit);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue