Ability to disable the auto QTH filler based on the location string
这个提交包含在:
父节点
2eb89c1eff
当前提交
256635919f
共有 2 个文件被更改,包括 18 次插入 和 2 次删除
|
|
@ -124,3 +124,19 @@ $config['qso_date_format'] = "d/m/y";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$config['map_6digit_grids'] = FALSE;
|
$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;
|
||||||
|
|
|
||||||
|
|
@ -486,7 +486,7 @@ $(document).on('keypress',function(e) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
<?php if ($this->config->item('qso_auto_qth')) { ?>
|
||||||
$('#qth').focusout(function() {
|
$('#qth').focusout(function() {
|
||||||
if ($('#locator').val() === '') {
|
if ($('#locator').val() === '') {
|
||||||
var lat = 0;
|
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 >= 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);
|
if (num >= 10) qthloc += String.fromCharCode(yn[8] + 0x61) + String.fromCharCode(yn[9] + 0x61);
|
||||||
return qthloc;
|
return qthloc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
$("#callsign").focusout(function() {
|
$("#callsign").focusout(function() {
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用