[QSO] Fixes issue when editing a gridsquare that distance wasn't calculated.

base_url wasn't defined therefore url only worked if you didn't use index.php

This fixes #2402
这个提交包含在:
Peter Goodhall 2023-08-13 22:12:12 +01:00
父节点 369e93308c
当前提交 25aa87f44f
共有 2 个文件被更改,包括 4 次插入4 次删除

查看文件

@ -152,8 +152,8 @@ function qso_edit(id) {
$('#locator').change(function(){ $('#locator').change(function(){
if ($(this).val().length >= 4) { if ($(this).val().length >= 4) {
$('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow"); $('#locator_info').load(base_url + "index.php/logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
$.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) { $.get(base_url + 'index.php/logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
document.getElementById("distance").value = result; document.getElementById("distance").value = result;
}); });
} }

查看文件

@ -751,8 +751,8 @@ $("#locator").keyup(function(){
markers.addLayer(marker).addTo(mymap); markers.addLayer(marker).addTo(mymap);
}) })
$('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow"); $('#locator_info').load(base_url +"index.php/logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
$.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) { $.get(base_url + '/index.php/logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
document.getElementById("distance").value = result; document.getElementById("distance").value = result;
}); });
} }