[WAS MAP] Minor tweaks. Always show button. Fetches band directly from the dropdown instead. Removed unneeded call to summary.

pull/1012/head
Andreas 2021-05-01 07:57:08 +02:00
rodzic de5671ef57
commit a4132ee7f3
3 zmienionych plików z 4 dodań i 7 usunięć

Wyświetl plik

@ -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);
}
}

Wyświetl plik

@ -66,9 +66,7 @@
</form>
<?php if ($this->input->post('band')) { ?>
<button type="button" onclick="load_was_map();" class="btn btn-info" style="margin-bottom: 15px;"><i class="fas fa-globe-americas"></i> Show WAS Map</button>
<?php } ?>
<?php
if ($was_array) {
$i = 1;
@ -127,4 +125,4 @@
}
else {
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>Nothing found!</div>';
}
}

Wyświetl plik

@ -23,9 +23,9 @@
function load_was_map() {
BootstrapDialog.show({
title: 'Worked All States Map (<?php echo $this->input->post('band'); ?>)',
title: 'Worked All States Map ('+$('#band2').val()+')',
cssClass: 'was-map-dialog',
message: $('<div></div>').load(site_url + '/awards/was_map/<?php echo $this->input->post('band'); ?>')
message: $('<div></div>').load(site_url + '/awards/was_map/' + $('#band2').val())
});
}