Fixed the country files update area which was broken due to the interface update
这个提交包含在:
父节点
ad0bccbc50
当前提交
909ffe4459
共有 3 个文件被更改,包括 25 次插入 和 24 次删除
|
|
@ -11,9 +11,9 @@ class Update extends CI_Controller {
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$data['page_title'] = "Updates";
|
$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('update/index');
|
||||||
$this->load->view('layout/footer');
|
$this->load->view('interface_assets/footer');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -373,7 +373,29 @@ $(document).ready(function(){
|
||||||
|
|
||||||
</script>
|
</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 } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="container">
|
<div class="container">
|
||||||
<h2><?php echo $page_title; ?></h2>
|
<h2><?php echo $page_title; ?></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -18,26 +18,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用