kopia lustrzana https://github.com/magicbug/Cloudlog
[Contesting] Fixed sorting when adding qsos to table
rodzic
17cb6027a5
commit
ea70ee94b5
|
@ -1189,6 +1189,8 @@ $(document).on('keypress',function(e) {
|
|||
|
||||
<?php } ?>
|
||||
<?php if ( $this->uri->segment(1) == "qso" || ($this->uri->segment(1) == "contesting" && $this->uri->segment(2) != "add")) { ?>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/moment.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datetime-moment.js"></script>
|
||||
<script>
|
||||
function setRst(mode) {
|
||||
if(mode == 'JT65' || mode == 'JT65B' || mode == 'JT6C' || mode == 'JTMS' || mode == 'ISCAT' || mode == 'MSK144' || mode == 'JTMSK' || mode == 'QRA64' || mode == 'FT8' || mode == 'FT4' || mode == 'JS8' || mode == 'JT9' || mode == 'JT9-1' || mode == 'ROS'){
|
||||
|
|
|
@ -426,9 +426,8 @@ function logQso() {
|
|||
vuccr,
|
||||
]];
|
||||
|
||||
table.rows.add(data);
|
||||
table.draw();
|
||||
|
||||
table.rows.add(data).draw();
|
||||
|
||||
var formdata = new FormData(document.getElementById("qso_input"));
|
||||
$.ajax({
|
||||
url: base_url + 'index.php/qso/saveqso',
|
||||
|
@ -520,6 +519,7 @@ function restoreContestSession(data) {
|
|||
'</tr>');
|
||||
});
|
||||
if (!$.fn.DataTable.isDataTable('.qsotable')) {
|
||||
$.fn.dataTable.moment('DD-MM-YYYY HH:mm:ss');
|
||||
$('.qsotable').DataTable({
|
||||
"stateSave": true,
|
||||
"pageLength": 25,
|
||||
|
@ -528,7 +528,6 @@ function restoreContestSession(data) {
|
|||
"scrollCollapse": true,
|
||||
"paging": false,
|
||||
"scrollX": true,
|
||||
columnDefs: [ { type: 'date', 'targets': [0] } ],
|
||||
order: [0, 'desc']
|
||||
});
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue