From 724399725c44fc94770cfd6c80d49580cd73eeee Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 12 Jun 2023 20:27:18 +0200 Subject: [PATCH] [OQRS] Fixed double search input when clicking proceed multiple times --- application/views/oqrs/index.php | 6 +++--- assets/js/sections/oqrs.js | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) 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) { ?>
- + - \ 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('