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:
commit
ec932af580
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue