[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
这个提交包含在:
父节点
369e93308c
当前提交
25aa87f44f
共有 2 个文件被更改,包括 4 次插入 和 4 次删除
|
|
@ -152,8 +152,8 @@ function qso_edit(id) {
|
|||
|
||||
$('#locator').change(function(){
|
||||
if ($(this).val().length >= 4) {
|
||||
$('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
|
||||
$.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
|
||||
$('#locator_info').load(base_url + "index.php/logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
|
||||
$.get(base_url + 'index.php/logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
|
||||
document.getElementById("distance").value = result;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -751,8 +751,8 @@ $("#locator").keyup(function(){
|
|||
markers.addLayer(marker).addTo(mymap);
|
||||
})
|
||||
|
||||
$('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
|
||||
$.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
|
||||
$('#locator_info').load(base_url +"index.php/logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
|
||||
$.get(base_url + '/index.php/logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) {
|
||||
document.getElementById("distance").value = result;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用