mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 21:35:30 +03:00
Merge branch 'master' into config-tab-improvements
This commit is contained in:
commit
725e062479
1 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@ TABS.motors.initialize = function (callback) {
|
||||||
self.feature3DSupported = false;
|
self.feature3DSupported = false;
|
||||||
self.allowTestMode = true;
|
self.allowTestMode = true;
|
||||||
|
|
||||||
var $motorsEnableTestMode = $('#motorsEnableTestMode');
|
var $motorsEnableTestMode;
|
||||||
|
|
||||||
if (GUI.active_tab != 'motors') {
|
if (GUI.active_tab != 'motors') {
|
||||||
GUI.active_tab = 'motors';
|
GUI.active_tab = 'motors';
|
||||||
|
@ -169,7 +169,8 @@ TABS.motors.initialize = function (callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function process_html() {
|
function process_html() {
|
||||||
// translate to user-selected language
|
$motorsEnableTestMode = $('#motorsEnableTestMode');
|
||||||
|
|
||||||
localize();
|
localize();
|
||||||
|
|
||||||
self.feature3DEnabled = bit_check(BF_CONFIG.features, 12);
|
self.feature3DEnabled = bit_check(BF_CONFIG.features, 12);
|
||||||
|
@ -377,7 +378,7 @@ TABS.motors.initialize = function (callback) {
|
||||||
$('div.values li:not(:last)').slice(0, number_of_valid_outputs).text(val);
|
$('div.values li:not(:last)').slice(0, number_of_valid_outputs).text(val);
|
||||||
$('div.sliders input:not(:last):first').trigger('input');
|
$('div.sliders input:not(:last):first').trigger('input');
|
||||||
});
|
});
|
||||||
|
console.log($motorsEnableTestMode);
|
||||||
$motorsEnableTestMode.change(function () {
|
$motorsEnableTestMode.change(function () {
|
||||||
if ($(this).is(':checked')) {
|
if ($(this).is(':checked')) {
|
||||||
$('div.sliders input').slice(0, number_of_valid_outputs).prop('disabled', false);
|
$('div.sliders input').slice(0, number_of_valid_outputs).prop('disabled', false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue