mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
quickswitch feature
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user