diff --git a/assets/js/sections/common.js b/assets/js/sections/common.js index 030a298f..265f27f1 100644 --- a/assets/js/sections/common.js +++ b/assets/js/sections/common.js @@ -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; }); } diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index 4efbb6a9..07f3a704 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -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; }); }