1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

Convert Spi rx protocolos to select2

This commit is contained in:
Asizon 2021-08-22 13:28:37 +02:00
parent b83ccdf146
commit 04b6edafbb

View file

@ -331,6 +331,15 @@ TABS.receiver.initialize = function (callback) {
// select current serial RX type
spiRxElement.val(FC.RX_CONFIG.rxSpiProtocol);
// Convert to select2 and order alphabetic
spiRxElement.select2({
sorter(data) {
return data.sort(function(a, b) {
return a.text.localeCompare(b.text);
});
},
});
}