mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Enable Blackbox on blackbox page
This commit is contained in:
parent
78fbb84f9e
commit
73015617c7
7 changed files with 70 additions and 29 deletions
|
@ -45,6 +45,19 @@ helper.features = (function() {
|
|||
toUnset.push(bit);
|
||||
};
|
||||
|
||||
publicScope.fromUI = function ($container) {
|
||||
|
||||
$container.find('[data-bit].feature').each(function () {
|
||||
let $this = $(this);
|
||||
if ($this.is(":checked")) {
|
||||
publicScope.set($this.attr("data-bit"));
|
||||
} else {
|
||||
publicScope.unset($this.attr("data-bit"));
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
publicScope.execute = function(callback) {
|
||||
exitPoint = callback;
|
||||
mspHelper.loadBfConfig(privateScope.setBits);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue