From a4132ee7f3e839414f60c8c0ca8cd784243e796e Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sat, 1 May 2021 07:57:08 +0200 Subject: [PATCH] [WAS MAP] Minor tweaks. Always show button. Fetches band directly from the dropdown instead. Removed unneeded call to summary. --- application/controllers/Awards.php | 3 +-- application/views/awards/was/index.php | 4 +--- application/views/interface_assets/footer.php | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 445b160e..bfba2d85 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -516,10 +516,9 @@ class Awards extends CI_Controller { $data['was_array'] = $this->was->get_was_array($bands, $postdata); - $data['was_summary'] = $this->was->get_was_summary($bands); $data['page_title'] = ""; - + $this->load->view('awards/was/map', $data); } } diff --git a/application/views/awards/was/index.php b/application/views/awards/was/index.php index 2d609fa6..2b5d3a1e 100644 --- a/application/views/awards/was/index.php +++ b/application/views/awards/was/index.php @@ -66,9 +66,7 @@ - input->post('band')) { ?> - ×Nothing found!'; - } \ No newline at end of file + } diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 323e06bb..9ba26764 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -23,9 +23,9 @@ function load_was_map() { BootstrapDialog.show({ - title: 'Worked All States Map (input->post('band'); ?>)', + title: 'Worked All States Map ('+$('#band2').val()+')', cssClass: 'was-map-dialog', - message: $('
').load(site_url + '/awards/was_map/input->post('band'); ?>') + message: $('
').load(site_url + '/awards/was_map/' + $('#band2').val()) }); }