mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
[Contesting] Check if QSOTable is initialised
This fixes the javascript error reported in #981 not sure if it solves all the issues though
This commit is contained in:
parent
2396aec9d6
commit
ae4a7e596b
1 changed files with 11 additions and 10 deletions
|
|
@ -1854,16 +1854,17 @@ function deleteQsl(id) {
|
|||
'<td>'+ receivedexchange + '</td>' +
|
||||
'</tr>');
|
||||
});
|
||||
|
||||
$('.qsotable').DataTable({
|
||||
"pageLength": 25,
|
||||
responsive: false,
|
||||
"scrollY": "400px",
|
||||
"scrollCollapse": true,
|
||||
"paging": false,
|
||||
"scrollX": true,
|
||||
"order": [[ 0, "desc" ]]
|
||||
});
|
||||
if (!$.fn.DataTable.isDataTable('.qsotable')) {
|
||||
$('.qsotable').DataTable({
|
||||
"pageLength": 25,
|
||||
responsive: false,
|
||||
"scrollY": "400px",
|
||||
"scrollCollapse": true,
|
||||
"paging": false,
|
||||
"scrollX": true,
|
||||
"order": [[ 0, "desc" ]]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue