Tables in QSO upload and eQSL view should use differnent classes
Also adds clear button to eQSL view table
这个提交包含在:
父节点
2ca2a70a1e
当前提交
82b4e60beb
共有 2 个文件被更改,包括 20 次插入 和 3 次删除
|
|
@ -463,7 +463,7 @@ class eqsl extends CI_Controller {
|
|||
}
|
||||
|
||||
function writeEqslNotSent($qslsnotsent, $custom_date_format) {
|
||||
$table = '<table = style="width:100%" class="table-sm table table-bordered table-hover table-striped table-condensed text-center">';
|
||||
$table = '<table = style="width:100%" class="table-sm table qsotable table-bordered table-hover table-striped table-condensed text-center">';
|
||||
$table .= "<thead><tr class=\"titles\">";
|
||||
$table .= "<th>Date</th>";
|
||||
$table .= "<th>Time</th>";
|
||||
|
|
|
|||
|
|
@ -2196,7 +2196,17 @@ $(document).ready(function(){
|
|||
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datetime-moment.js"></script>
|
||||
<script>
|
||||
$.fn.dataTable.moment('<?php echo $usethisformat ?>');
|
||||
$.fn.dataTable.ext.buttons.clear = {
|
||||
className: 'buttons-clear',
|
||||
action: function ( e, dt, node, config ) {
|
||||
dt.search('').draw();
|
||||
}
|
||||
};
|
||||
<?php if ($this->uri->segment(1) == "qsl") { ?>
|
||||
$('.qsltable').DataTable({
|
||||
<?php } else if ($this->uri->segment(1) == "eqsl") { ?>
|
||||
$('.eqsltable').DataTable({
|
||||
<?php } ?>
|
||||
"pageLength": 25,
|
||||
responsive: false,
|
||||
ordering: true,
|
||||
|
|
@ -2205,6 +2215,13 @@ $(document).ready(function(){
|
|||
"paging": false,
|
||||
"scrollX": true,
|
||||
"order": [ 2, 'desc' ],
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
{
|
||||
extend: 'clear',
|
||||
text: 'Clear'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
|
@ -2765,7 +2782,7 @@ function viewEqsl(picture, callsign) {
|
|||
|
||||
<?php if ($this->uri->segment(1) == "eqsl") { ?>
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
$('.qsotable').DataTable({
|
||||
"stateSave": true,
|
||||
"pageLength": 25,
|
||||
responsive: false,
|
||||
|
|
@ -2774,7 +2791,7 @@ function viewEqsl(picture, callsign) {
|
|||
"paging": false,
|
||||
"scrollX": true,
|
||||
"ordering": true,
|
||||
"order": [ 2, 'desc' ],
|
||||
"order": [ 0, 'desc' ],
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
|
|
|||
正在加载…
在新工单中引用