1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2019-11-21 19:21:14 +01:00
parent 78fbb84f9e
commit 73015617c7
7 changed files with 70 additions and 29 deletions

View file

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