Added highlighting of txing station in Last Heard
This commit is contained in:
parent
9e064d90c1
commit
5917968731
3 changed files with 19 additions and 1 deletions
|
@ -29,3 +29,8 @@ body {
|
|||
nowrap {
|
||||
white-space:nowrap
|
||||
}
|
||||
|
||||
.red {
|
||||
background-color: Coral !important;
|
||||
}
|
||||
|
||||
|
|
|
@ -241,6 +241,13 @@
|
|||
} );
|
||||
|
||||
var t_lh = $('#lastHeard').DataTable( {
|
||||
"createdRow": function( row, data, dataIndex ) {
|
||||
if ( data[5] == "TXing" ) {
|
||||
$(row).addClass('red');
|
||||
} else {
|
||||
$(row).removeClass('red');
|
||||
}
|
||||
},
|
||||
"order": [[ 0, "desc" ]]
|
||||
} );
|
||||
|
||||
|
|
|
@ -344,6 +344,12 @@ function getLastHeard(document, event) {
|
|||
addToQSO
|
||||
]
|
||||
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 {
|
||||
t_lh.row.add( [
|
||||
timestamp,
|
||||
|
|
Loading…
Reference in a new issue