mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed the country files update area which was broken due to the interface update
This commit is contained in:
@@ -11,9 +11,9 @@ class Update extends CI_Controller {
|
||||
public function index()
|
||||
{
|
||||
$data['page_title'] = "Updates";
|
||||
$this->load->view('layout/header', $data);
|
||||
$this->load->view('interface_assets/header', $data);
|
||||
$this->load->view('update/index');
|
||||
$this->load->view('layout/footer');
|
||||
$this->load->view('interface_assets/footer');
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -373,7 +373,29 @@ $(document).ready(function(){
|
||||
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->uri->segment(1) == "update") { ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#btn_update_dxcc').bind('click', function(){
|
||||
$('#dxcc_update_status').show();
|
||||
$.ajax({url:"update/dxcc"});
|
||||
setTimeout(update_stats,5000);
|
||||
});
|
||||
function update_stats(){
|
||||
$('#dxcc_update_status').load('<?php echo base_url()?>updates/status.html', function(val){
|
||||
$('#dxcc_update_staus').html(val);
|
||||
|
||||
if ((val === null) || (val.substring(0,4) !="DONE")){
|
||||
setTimeout(update_stats, 5000);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="container">
|
||||
<div class="container">
|
||||
<h2><?php echo $page_title; ?></h2>
|
||||
|
||||
|
||||
@@ -18,26 +18,5 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#btn_update_dxcc').bind('click', function(){
|
||||
$('#dxcc_update_status').show();
|
||||
$.ajax({url:"update/dxcc"});
|
||||
setTimeout(update_stats,5000);
|
||||
});
|
||||
function update_stats(){
|
||||
$('#dxcc_update_status').load('<?php echo base_url()?>updates/status.html', function(val){
|
||||
$('#dxcc_update_staus').html(val);
|
||||
|
||||
if ((val === null) || (val.substring(0,4) !="DONE")){
|
||||
setTimeout(update_stats, 5000);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user