1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2019-11-21 19:52:28 +01:00
parent 73015617c7
commit 34a4057f79
2 changed files with 14 additions and 30 deletions

View file

@ -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 () {