kopia lustrzana https://github.com/magicbug/Cloudlog
[WAS MAP] Minor tweaks. Always show button. Fetches band directly from the dropdown instead. Removed unneeded call to summary.
rodzic
de5671ef57
commit
a4132ee7f3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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">×</a>Nothing found!</div>';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue