mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Fixes clicking on helpicon affects input (#1637)
Fixes clicking on helpicon affects input
This commit is contained in:
commit
845155c8e2
7 changed files with 44 additions and 111 deletions
|
@ -87,7 +87,7 @@ Beepers.prototype.generateElements = function (template, destination) {
|
|||
destination.append(element);
|
||||
|
||||
var input_e = $(element).find('input');
|
||||
var label_e = $(element).find('label');
|
||||
var label_e = $(element).find('div');
|
||||
var span_e = $(element).find('span');
|
||||
|
||||
input_e.attr('id', 'beeper-' + i);
|
||||
|
@ -96,7 +96,6 @@ Beepers.prototype.generateElements = function (template, destination) {
|
|||
input_e.prop('checked', bit_check(self._beeperMask, self._beepers[i].bit) == 0);
|
||||
input_e.data('bit', self._beepers[i].bit);
|
||||
|
||||
label_e.attr('for', 'beeper-' + i);
|
||||
label_e.text(self._beepers[i].name);
|
||||
|
||||
span_e.attr('i18n', 'beeper' + self._beepers[i].name);
|
||||
|
|
|
@ -167,11 +167,9 @@ Features.prototype.generateElements = function (featuresElements) {
|
|||
+ self._features[i].name
|
||||
+ '" title="'
|
||||
+ self._features[i].name
|
||||
+ '" type="checkbox"/></td><td><label for="feature-'
|
||||
+ i
|
||||
+ '">'
|
||||
+ '" type="checkbox"/></td><td><div>'
|
||||
+ self._features[i].name
|
||||
+ '</label></td><td><span i18n="feature' + self._features[i].name + '"></span>'
|
||||
+ '</div></td><td><span i18n="feature' + self._features[i].name + '"></span>'
|
||||
+ feature_tip_html + '</td></tr>');
|
||||
|
||||
var feature_e = newElement.find('input.feature');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue