1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 13:25:24 +03:00

Remove clickable labels for switches

This commit is contained in:
IvoFPV 2019-09-09 22:11:53 +02:00
parent 3b5b8c65ed
commit cf112f8992
7 changed files with 35 additions and 102 deletions

View file

@ -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);