mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00: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:
@@ -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" ]]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user