quickswitch feature

This commit is contained in:
HB9HIL
2024-02-09 11:05:28 +01:00
parent 1a921fe32f
commit d1e11455e4
6 changed files with 190 additions and 97 deletions

View File

@@ -92,6 +92,24 @@ if($this->session->userdata('user_id') != null) {
<!-- Version Dialog END -->
<script>
function set_active_location(current_active, new_active) {
$.ajax({
url: base_url + 'index.php/station/set_active',
type: 'POST',
dataType: 'json',
data: {
current: current_active,
new: new_active,
is_ajax: true
},
success: function(response) {
location.reload();
}
});
}
</script>
<?php if ($this->uri->segment(1) == "oqrs") { ?>
<script src="<?php echo base_url() ;?>assets/js/sections/oqrs.js"></script>
<?php } ?>
@@ -977,9 +995,6 @@ $($('#callsign')).on('keypress',function(e) {
<?php
}
$this->load->model('stations');
$active_station_id = $this->stations->find_active();
$station_profile = $this->stations->profile($active_station_id);
$active_station_info = $station_profile->row();