Ability to disable the auto QTH filler based on the location string

pull/490/head
Stanimir Stoyanov 2020-05-08 14:52:53 +03:00
rodzic 2eb89c1eff
commit 256635919f
2 zmienionych plików z 18 dodań i 2 usunięć

Wyświetl plik

@ -124,3 +124,19 @@ $config['qso_date_format'] = "d/m/y";
*/
$config['map_6digit_grids'] = FALSE;
/*
|--------------------------------------------------------------------------
| Automatically populate the QTH
|--------------------------------------------------------------------------
|
| Setting this to TRUE allows the QTH locator to be pre-filled
| based on the person's location when creating new QSO.
| OSM's Nominatim API is being used for that purpose
|
| Default is: TRUE
|
*/
$config['qso_auto_qth'] = TRUE;

Wyświetl plik

@ -486,7 +486,7 @@ $(document).on('keypress',function(e) {
})
}
}
<?php if ($this->config->item('qso_auto_qth')) { ?>
$('#qth').focusout(function() {
if ($('#locator').val() === '') {
var lat = 0;
@ -548,8 +548,8 @@ $(document).on('keypress',function(e) {
if (num >= 8) qthloc += ' ' + String.fromCharCode(yn[6] + 0x30) + String.fromCharCode(yn[7] + 0x30);
if (num >= 10) qthloc += String.fromCharCode(yn[8] + 0x61) + String.fromCharCode(yn[9] + 0x61);
return qthloc;
}
<?php } ?>
$("#callsign").focusout(function() {