mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 17:25:16 +03:00
Dont aply Select2 on andoid
This commit is contained in:
parent
04b6edafbb
commit
675e03889c
1 changed files with 19 additions and 15 deletions
|
@ -260,6 +260,7 @@ TABS.receiver.initialize = function (callback) {
|
|||
serialRxSelectElement.val(FC.RX_CONFIG.serialrx_provider);
|
||||
|
||||
// Convert to select2 and order alphabetic
|
||||
if (!GUI.isCordova()) {
|
||||
serialRxSelectElement.select2({
|
||||
sorter(data) {
|
||||
return data.sort(function(a, b) {
|
||||
|
@ -267,6 +268,7 @@ TABS.receiver.initialize = function (callback) {
|
|||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_31)) {
|
||||
const spiRxTypes = [
|
||||
|
@ -332,6 +334,7 @@ TABS.receiver.initialize = function (callback) {
|
|||
// select current serial RX type
|
||||
spiRxElement.val(FC.RX_CONFIG.rxSpiProtocol);
|
||||
|
||||
if (!GUI.isCordova()) {
|
||||
// Convert to select2 and order alphabetic
|
||||
spiRxElement.select2({
|
||||
sorter(data) {
|
||||
|
@ -341,6 +344,7 @@ TABS.receiver.initialize = function (callback) {
|
|||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// UI Hooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue