mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Allow sorting of additional fields in heard station list
This commit is contained in:
parent
83fc3f5ce2
commit
c1079085cd
2 changed files with 15 additions and 3 deletions
|
@ -1632,6 +1632,18 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
sorthslTable(5);
|
sorthslTable(5);
|
||||||
resetSortIcon();
|
resetSortIcon();
|
||||||
});
|
});
|
||||||
|
document.getElementById("thType").addEventListener("click", () => {
|
||||||
|
if (hslLastSort == 6 && hslLastSortDir == "asc") hslLastSortDir = "desc";
|
||||||
|
else hslLastSortDir = "asc";
|
||||||
|
sorthslTable(6);
|
||||||
|
resetSortIcon();
|
||||||
|
});
|
||||||
|
document.getElementById("thSnr").addEventListener("click", () => {
|
||||||
|
if (hslLastSort == 7 && hslLastSortDir == "asc") hslLastSortDir = "desc";
|
||||||
|
else hslLastSortDir = "asc";
|
||||||
|
sorthslTable(7);
|
||||||
|
resetSortIcon();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function resetSortIcon(){
|
function resetSortIcon(){
|
||||||
|
|
|
@ -1152,14 +1152,14 @@
|
||||||
<table class="table table-sm" id="tblHeardStationList">
|
<table class="table table-sm" id="tblHeardStationList">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" id="thTime">Time</th>
|
<th scope="col" id="thTime"><i id="hslSort" class="bi bi-sort-up"></i>Time</th>
|
||||||
<th scope="col" id="thFreq">Frequency</th>
|
<th scope="col" id="thFreq">Frequency</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<th scope="col" id="thDxcall">DXCall</th>
|
<th scope="col" id="thDxcall">DXCall</th>
|
||||||
<th scope="col" id="thDxgrid">DXGrid</th>
|
<th scope="col" id="thDxgrid">DXGrid</th>
|
||||||
<th scope="col" id="thDist">Distance</th>
|
<th scope="col" id="thDist">Distance</th>
|
||||||
<th scope="col">Type</th>
|
<th scope="col" id="thType">Type</th>
|
||||||
<th scope="col">SNR (rx/dx)</th>
|
<th scope="col" id="thSnr">SNR (rx/dx)</th>
|
||||||
<!--<th scope="col">Off</th>-->
|
<!--<th scope="col">Off</th>-->
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Reference in a new issue