Tables in QSO upload and eQSL view should use differnent classes

Also adds clear button to eQSL view table
这个提交包含在:
phl0 2023-08-15 22:23:11 +02:00
父节点 2ca2a70a1e
当前提交 82b4e60beb
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A
共有 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 } ?>