earch bearing also converted to POST

This commit is contained in:
phl0 2023-08-29 23:46:07 +02:00
parent a5f7a76290
commit 23f45ee5be
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A

View File

@ -152,7 +152,20 @@ function qso_edit(id) {
$('#locator').change(function(){
if ($(this).val().length >= 4) {
$('#locator_info').load(base_url + "index.php/logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow");
$.ajax({
url: base_url + 'index.php/logbook/searchbearing',
type: 'post',
data: {
grid: $(this).val(),
stationProfile: $('#stationProfile').val()
},
success: function(data) {
$('#locator_info').html(data).fadeIn("slow");
},
error: function() {
$('#locator_info').text("Error loading bearing!").fadeIn("slow");
},
});
$.ajax({
url: base_url + 'index.php/logbook/searchdistance',
type: 'post',