Skip to content

Commit ac661b6

Browse files
authored
Fix GPS tab (#4633)
* Fix GPS tab * CR I
1 parent 10d6584 commit ac661b6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/js/tabs/gps.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,17 @@ gps.initialize = async function (callback) {
103103
// Introduced in API 1.43
104104
gpsSbas.push(i18n.getMessage("gpsSbasNone"));
105105

106-
const gpsProtocolElement = $(".number.gps_protocol");
106+
const gpsProtocolElement = $(".gps_protocol");
107107
const gpsAutoBaudElement = $('input[name="gps_auto_baud"]');
108108
const gpsAutoBaudGroup = $(".gps_auto_baud");
109109
const gpsAutoConfigElement = $('input[name="gps_auto_config"]');
110110
const gpsAutoConfigGroup = $(".gps_auto_config");
111111
const gpsUbloxGalileoElement = $('input[name="gps_ublox_galileo"]');
112112
const gpsUbloxGalileoGroup = $(".gps_ublox_galileo");
113-
const gpsUbloxSbasElement = $(".number.gps_ubx_sbas");
114-
const gpsUbloxSbasGroup = $(".gps_ubx_sbas");
113+
const gpsUbloxSbasElement = $(".gps_ubx_sbas");
114+
const gpsUbloxSbasGroup = gpsUbloxSbasElement.closest(".select");
115115
const gpsHomeOnceElement = $('input[name="gps_home_once"]');
116-
const gpsBaudrateElement = $(".number.gps_baudrate");
116+
const gpsBaudrateElement = $(".gps_baudrate");
117117

118118
for (let protocolIndex = 0; protocolIndex < gpsProtocols.length; protocolIndex++) {
119119
gpsProtocolElement.append(`<option value="${protocolIndex}">${gpsProtocols[protocolIndex]}</option>`);

src/tabs/gps.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
<span class="freelabel" i18n="configurationGPSHomeOnce"></span>
6262
<div class="helpicon cf_tip" i18n_title="configurationGPSHomeOnceHelp"></div>
6363
</div>
64-
<div class="number gps_ubx_sbas">
64+
<div class="select">
6565
<select class="gps_ubx_sbas">
6666
<!-- list generated here -->
6767
</select>
68-
<span i18n="configurationGPSubxSbas"></span>
68+
<span class="freelabel" i18n="configurationGPSubxSbas"></span>
6969
</div>
7070
</div>
7171
</div>

0 commit comments

Comments
 (0)