Merge pull request #2410 from phl0/unknotEqslTables

Tables in QSO upload and eQSL view should use differnent classes
这个提交包含在:
Peter Goodhall 2023-08-15 21:43:40 +01:00 提交者 GitHub
当前提交 3061d97e84
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 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'
}
]
});
@ -2812,7 +2829,7 @@ function viewEqsl(picture, callsign) {
<?php if ($this->uri->segment(1) == "eqsl") { ?>
<script>
$('.table').DataTable({
$('.qsotable').DataTable({
"stateSave": true,
"pageLength": 25,
responsive: false,
@ -2821,7 +2838,7 @@ function viewEqsl(picture, callsign) {
"paging": false,
"scrollX": true,
"ordering": true,
"order": [ 2, 'desc' ],
"order": [ 0, 'desc' ],
});
</script>
<?php } ?>