1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 08:15:22 +03:00

Fix unknown elements at the end in the OSD tab (#1825)

Fix unknown elements at the end in the OSD tab
This commit is contained in:
Michael Keller 2019-11-16 01:05:26 +13:00 committed by GitHub
commit ec932af580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2320,6 +2320,7 @@ TABS.osd.initialize = function (callback) {
$field.append('<label for="' + field.name + '" class="char-label">' + titleizeField(field) + '</label>');
// Insert in alphabetical order, with unknown fields at the end
$field.name = field.name;
insertOrdered($statsFields, $field);
}
@ -2357,6 +2358,7 @@ TABS.osd.initialize = function (callback) {
$field.append('<label for="' + field.name + '" class="char-label">' + finalFieldName + '</label>');
// Insert in alphabetical order, with unknown fields at the end
$field.name = field.name;
insertOrdered($warningFields, $field);
}
@ -2493,6 +2495,7 @@ TABS.osd.initialize = function (callback) {
}
// Insert in alphabetical order, with unknown fields at the end
$field.name = field.name;
insertOrdered($displayFields, $field);
}