mirror of
https://github.com/dg9vh/MMDVMHost-Websocketboard.git
synced 2026-04-05 06:25:22 +00:00
Some code-rework on logtailer for being compatible with Python 3.8 and new Column Last TX at in Currently in QSO for better round management
This commit is contained in:
parent
da1211bbb2
commit
9bf065a3a3
3 changed files with 79 additions and 13 deletions
|
|
@ -156,6 +156,7 @@
|
|||
<tr>
|
||||
<th>Callsign</th>
|
||||
<th>Added at</th>
|
||||
<th>Last TX at</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
@ -274,7 +275,8 @@
|
|||
|
||||
|
||||
var t_qso = $('#inQSO').DataTable( {
|
||||
"order": [[ 0, "asc" ]]
|
||||
"order": [[ 2, "asc" ]],
|
||||
"autoWidth": false
|
||||
} );
|
||||
|
||||
$('#inQSO tbody').on( 'click', 'tr', function () {
|
||||
|
|
|
|||
|
|
@ -185,7 +185,8 @@ function copyToQSO(callsign) {
|
|||
$(document).ready(function() {
|
||||
t_qso.row.add( [
|
||||
callsign,
|
||||
new Date().toUTCString()
|
||||
new Date().toUTCString(),
|
||||
""
|
||||
] ).draw();
|
||||
});
|
||||
alert("" + callsign + " added to in QSO-Tab");
|
||||
|
|
@ -198,10 +199,22 @@ function getCurrentTXing() {
|
|||
if (ts1TXing != null) {
|
||||
ts1 = ts1TXing.split(";");
|
||||
ts1[4] = Math.round((Date.now() - Date.parse(ts1timestamp.replace(" ","T")+".000Z"))/1000);
|
||||
t_qso.rows( function ( idx, data, node ) {
|
||||
if(data[0] == ts1[1]){
|
||||
data[2] = ts1timestamp;
|
||||
$('#inQSO').dataTable().fnUpdate(data,idx,undefined,false);
|
||||
}
|
||||
}).draw();
|
||||
}
|
||||
if (ts2TXing != null) {
|
||||
ts2 = ts2TXing.split(";");
|
||||
ts2[4] = Math.round((Date.now() - Date.parse(ts2timestamp.replace(" ","T")+".000Z"))/1000);
|
||||
t_qso.rows( function ( idx, data, node ) {
|
||||
if(data[0] == ts2[1]){
|
||||
data[2] = ts2timestamp;
|
||||
$('#inQSO').dataTable().fnUpdate(data,idx,undefined,false);
|
||||
}
|
||||
}).draw();
|
||||
}
|
||||
t_ct.clear().draw();
|
||||
if (ts1 != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue