mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 03:19:54 +03:00
Improve Outputs handling
This commit is contained in:
parent
73015617c7
commit
34a4057f79
2 changed files with 14 additions and 30 deletions
|
@ -45,6 +45,13 @@ helper.features = (function() {
|
|||
toUnset.push(bit);
|
||||
};
|
||||
|
||||
publicScope.updateUI = function ($container, values) {
|
||||
$container.find('[data-bit].feature').each(function () {
|
||||
let $this = $(this);
|
||||
$this.prop('checked', bit_check(values, $this.attr("data-bit")));
|
||||
});
|
||||
};
|
||||
|
||||
publicScope.fromUI = function ($container) {
|
||||
|
||||
$container.find('[data-bit].feature').each(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue