From d2fdcd654623a4e358453dbff184a3de42dcd6bb Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 13 Feb 2022 23:03:38 +0100 Subject: [PATCH] Also add QSL/contest tooltips to advanced search results --- application/controllers/Search.php | 8 +- application/views/interface_assets/footer.php | 2 + .../views/search/search_result_ajax.php | 199 ++++++++++++------ 3 files changed, 144 insertions(+), 65 deletions(-) diff --git a/application/controllers/Search.php b/application/controllers/Search.php index f440e2cd..abba13e5 100644 --- a/application/controllers/Search.php +++ b/application/controllers/Search.php @@ -12,6 +12,12 @@ class Search extends CI_Controller { $this->load->model('user_model'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } } + + // Load language files + $this->lang->load(array( + 'lotw', + 'eqsl', + )); } public function index() @@ -277,4 +283,4 @@ class Search extends CI_Controller { } return $query; } -} \ No newline at end of file +} diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index c4a35e26..8d7beee6 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -360,6 +360,7 @@ function load_was_map() { if (isDarkModeTheme()) { $(".buttons-csv").css("color", "white"); } + $('[data-toggle="tooltip"]').tooltip(); $(".searchbutton").removeClass('running'); $(".searchbutton").prop('disabled', false); $("#btn-save").show(); @@ -395,6 +396,7 @@ function load_was_map() { //$log.info(e.value); }); +