1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Fixes from review.

This commit is contained in:
mikeller 2019-04-09 21:18:17 +12:00
parent 33c2899e3d
commit f14c66b5f7

View file

@ -196,12 +196,6 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
load_config(); load_config();
function process_html() { function process_html() {
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
$('input[name="fpvCamAngleDegrees"]').attr({
"max" : 90
});
}
self.analyticsChanges = {}; self.analyticsChanges = {};
var mixer_list_e = $('select.mixerList'); var mixer_list_e = $('select.mixerList');
@ -524,6 +518,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
if (semver.gte(CONFIG.apiVersion, "1.31.0")) { if (semver.gte(CONFIG.apiVersion, "1.31.0")) {
$('input[name="fpvCamAngleDegrees"]').val(RX_CONFIG.fpvCamAngleDegrees); $('input[name="fpvCamAngleDegrees"]').val(RX_CONFIG.fpvCamAngleDegrees);
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
$('input[name="fpvCamAngleDegrees"]').attr("max", 90);
}
} else { } else {
$('div.fpvCamAngleDegrees').hide(); $('div.fpvCamAngleDegrees').hide();
} }