Skip to content

Commit 1644c67

Browse files
authored
v1.5.2 hotfix NAV
Hotfix for decimal numbers on iOS. Includes a simple JS which replaces "," with ".".
1 parent 87793fd commit 1644c67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/menu_nav.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
</div>
290290
<input lang="en-US" class="form-control" type="number" onkeydown = "if (event.keyCode == 13) document.getElementById('NAV1_Set').click()" inputmode="decimal" pattern="[0-9]*" id="NAV1_freq" aria-label="NAV 1 Freq" aria-describedby="NAV1_freq" placeholder="-">
291291
<div class="input-group-append">
292-
<button onclick='if (document.getElementById("NAV1_freq").value <= 117.95 && document.getElementById("NAV1_freq").value >= 108 && document.getElementById("NAV1_freq").value != "") {triggerSimEventFromField ("NAV1_RADIO_SET", "NAV1_freq", "Setting NAV1"); $("#NAV1_freq").val("");}; $(this).blur(); sleep(3000).then(() => { syncRadio(); });' class="btn btn-warning" type="button" id="NAV1_Set" style="margin-top:0px;margin-bottom:0px;" title="Set NAV 1 frequency in MHz">Set</button>
292+
<button onclick='document.getElementById("NAV1_freq").value = document.getElementById("NAV1_freq").value. replace(",", "."); if (document.getElementById("NAV1_freq").value <= 117.95 && document.getElementById("NAV1_freq").value >= 108 && document.getElementById("NAV1_freq").value != "") {triggerSimEventFromField ("NAV1_RADIO_SET", "NAV1_freq", "Setting NAV1"); $("#NAV1_freq").val("");}; $(this).blur(); sleep(3000).then(() => { syncRadio(); });' class="btn btn-warning" type="button" id="NAV1_Set" style="margin-top:0px;margin-bottom:0px;" title="Set NAV 1 frequency in MHz">Set</button>
293293
</div>
294294
</div>
295295
</div>
@@ -324,7 +324,7 @@
324324
</div>
325325
<input lang="en-US" class="form-control" type="number" onkeydown = "if (event.keyCode == 13) document.getElementById('NAV2_Set').click()" inputmode="decimal" pattern="[0-9]*" id="NAV2_freq" aria-label="NAV 2 Freq" aria-describedby="NAV2_freq" placeholder="-">
326326
<div class="input-group-append">
327-
<button onclick='if (document.getElementById("NAV2_freq").value <= 117.95 && document.getElementById("NAV2_freq").value >= 108 && document.getElementById("NAV2_freq").value != "") {triggerSimEventFromField ("NAV2_RADIO_SET", "NAV2_freq", "Setting NAV2");$("#NAV2_freq").val("");}; $(this).blur();sleep(3000).then(() => { syncRadio(); });' class="btn btn-warning" type="button" id="NAV2_Set" style="margin-top:0px;margin-bottom:0px;" title="Set NAV 2 frequency in MHz">Set</button>
327+
<button onclick='document.getElementById("NAV2_freq").value = document.getElementById("NAV2_freq").value. replace(",", "."); if (document.getElementById("NAV2_freq").value <= 117.95 && document.getElementById("NAV2_freq").value >= 108 && document.getElementById("NAV2_freq").value != "") {triggerSimEventFromField ("NAV2_RADIO_SET", "NAV2_freq", "Setting NAV2");$("#NAV2_freq").val("");}; $(this).blur();sleep(3000).then(() => { syncRadio(); });' class="btn btn-warning" type="button" id="NAV2_Set" style="margin-top:0px;margin-bottom:0px;" title="Set NAV 2 frequency in MHz">Set</button>
328328
</div>
329329
</div>
330330
</div>
@@ -357,7 +357,7 @@
357357
<div class="input-group-prepend">
358358
<span class="input-group-text text-body" id="inputGroup-sizing-default" style="background-color:#B3B6B8; border-color:#B3B6B8; width:150px">ADF Freq (kHz)</span>
359359
</div>
360-
<input lang="en-US" class="form-control" type="number" onkeydown = "if (event.keyCode == 13) document.getElementById('ADF_Freq_Set').click()" inputmode="decimal" pattern="[0-9]*" id="ADF_freq" aria-label="ADF Freq" aria-describedby="ADF_freq" placeholder="-">
360+
<input lang="en-US" class="form-control" type="number" onkeydown = "if (event.keyCode == 13) document.getElementById('ADF_Freq_Set').click()" inputmode="numeric" pattern="[0-9]*" id="ADF_freq" aria-label="ADF Freq" aria-describedby="ADF_freq" placeholder="-">
361361
<div class="input-group-append">
362362
<button onclick='if (document.getElementById("ADF_freq").value <= 1799 && document.getElementById("ADF_freq").value >= 100 && document.getElementById("ADF_freq").value != "") {triggerSimEventFromField ("ADF_COMPLETE_SET", "ADF_freq", "Setting ADF"); $("#ADF_freq").val("");}; $(this).blur();sleep(3000).then(() => { syncRadio(); });' class="btn btn-warning" type="button" id="ADF_Freq_Set" style="margin-top:0px;margin-bottom:0px;" title="Set ADF frequency in kHz">Set</button>
363363
</div>

0 commit comments

Comments
 (0)