mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Convert Spi rx protocolos to select2
This commit is contained in:
parent
b83ccdf146
commit
04b6edafbb
1 changed files with 9 additions and 0 deletions
|
@ -331,6 +331,15 @@ TABS.receiver.initialize = function (callback) {
|
||||||
|
|
||||||
// select current serial RX type
|
// select current serial RX type
|
||||||
spiRxElement.val(FC.RX_CONFIG.rxSpiProtocol);
|
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);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue