1
0
Fork 0

Added highlighting of txing station in Last Heard

main
Kim Huebel 4 years ago
parent 9e064d90c1
commit 5917968731

@ -28,4 +28,9 @@ body {
nowrap { nowrap {
white-space:nowrap white-space:nowrap
} }
.red {
background-color: Coral !important;
}

@ -241,6 +241,13 @@
} ); } );
var t_lh = $('#lastHeard').DataTable( { var t_lh = $('#lastHeard').DataTable( {
"createdRow": function( row, data, dataIndex ) {
if ( data[5] == "TXing" ) {
$(row).addClass('red');
} else {
$(row).removeClass('red');
}
},
"order": [[ 0, "desc" ]] "order": [[ 0, "desc" ]]
} ); } );

@ -344,6 +344,12 @@ function getLastHeard(document, event) {
addToQSO addToQSO
] ]
t_lh.row(rowIndexes[0]).data( newData ).draw(false); t_lh.row(rowIndexes[0]).data( newData ).draw(false);
var row = t_lh.row(rowIndexes[0]).node();
if (txing) {
$(row).addClass('red');
} else {
$(row).removeClass('red');
}
} else { } else {
t_lh.row.add( [ t_lh.row.add( [
timestamp, timestamp,

Loading…
Cancel
Save