diff --git a/application/views/oqrs/index.php b/application/views/oqrs/index.php index 36bb4e80..f087f83d 100644 --- a/application/views/oqrs/index.php +++ b/application/views/oqrs/index.php @@ -42,7 +42,6 @@ '; if ($stations->result() != NULL) { ?>
@@ -55,7 +54,7 @@
- +
- \ No newline at end of file + + \ No newline at end of file diff --git a/assets/js/sections/oqrs.js b/assets/js/sections/oqrs.js index 069cd22e..770f6283 100644 --- a/assets/js/sections/oqrs.js +++ b/assets/js/sections/oqrs.js @@ -2,7 +2,7 @@ let station_id; function loadStationInfo() { station_id = $("#station").val(); - // $(".stationinfo").empty(); + $(".resulttable").empty(); $(".searchinfo").empty(); $.ajax({ url: base_url+'index.php/oqrs/get_station_info', @@ -10,8 +10,8 @@ function loadStationInfo() { data: {'station_id': station_id}, success: function (data) { if (data.count > 0) { - $(".stationinfo").append('
' + data.count + ' Qsos logged between ' + data.mindate + ' and ' + data.maxdate + '.

'); - $(".stationinfo").append('
'); + $(".resulttable").append('
' + data.count + ' Qsos logged between ' + data.mindate + ' and ' + data.maxdate + '.

'); + $(".resulttable").append('
'); // Get the input field var input = document.getElementById("oqrssearch"); @@ -231,6 +231,7 @@ function submitOqrsRequest() { 'qslroute': $('input[name="qslroute"]:checked').val() }, success: function (data) { + $(".resulttable").empty(); $(".stationinfo").empty(); $(".searchinfo").empty(); $(".stationinfo").append('
×Your QSL request has been saved!
');