1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 12:55:13 +03:00

Merge branch 'master' into config-tab-improvements

This commit is contained in:
Pawel Spychalski (DzikuVx) 2016-12-23 20:30:07 +01:00
commit 725e062479

View file

@ -12,7 +12,7 @@ TABS.motors.initialize = function (callback) {
self.feature3DSupported = false;
self.allowTestMode = true;
var $motorsEnableTestMode = $('#motorsEnableTestMode');
var $motorsEnableTestMode;
if (GUI.active_tab != 'motors') {
GUI.active_tab = 'motors';
@ -169,7 +169,8 @@ TABS.motors.initialize = function (callback) {
}
function process_html() {
// translate to user-selected language
$motorsEnableTestMode = $('#motorsEnableTestMode');
localize();
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.sliders input:not(:last):first').trigger('input');
});
console.log($motorsEnableTestMode);
$motorsEnableTestMode.change(function () {
if ($(this).is(':checked')) {
$('div.sliders input').slice(0, number_of_valid_outputs).prop('disabled', false);