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

Fix unknown elements at the end in the OSD tab

This commit is contained in:
Miguel Angel Mulero Martinez 2019-11-12 16:41:02 +01:00
parent bafc683183
commit c9e0b4e276

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);
}