From 23f45ee5be4398248d9a7b6fd1e0d0492eff0f0c Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 29 Aug 2023 23:46:07 +0200 Subject: [PATCH] earch bearing also converted to POST --- assets/js/sections/common.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/assets/js/sections/common.js b/assets/js/sections/common.js index a5d1298a..4be6246b 100644 --- a/assets/js/sections/common.js +++ b/assets/js/sections/common.js @@ -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',