1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Fix OSD timer (#3894)

This commit is contained in:
Mark Haslinghuis 2024-04-12 22:50:36 +02:00 committed by GitHub
parent 8c7e952104
commit 0acc0e4a60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2887,8 +2887,6 @@ osd.initialize = function(callback) {
const timerPrecisionOptionText = i18n.getMessage(`osdTimerPrecisionOption${inflection.camelize(e.toLowerCase())}`);
precision.append(`<option value="${i}">${timerPrecisionOptionText}</option>`);
});
// Sort the element, if need to group, do it by lexical sort, ie. by naming of (the translated) selection text
precision.sortSelect();
precision[0].selectedIndex = tim.precision;
precision.blur(function() {
const idx = $(this)[0].id.split("_")[1];