mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
c1079085cd
commit
0c9e84ddf2
2 changed files with 16 additions and 6 deletions
|
@ -1648,9 +1648,17 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
||||||
function resetSortIcon() {
|
function resetSortIcon() {
|
||||||
document.getElementById("hslSort").remove();
|
document.getElementById("hslSort").remove();
|
||||||
let headers = document.querySelectorAll("#tblHeardStationList > thead > tr > th");
|
let headers = document.querySelectorAll(
|
||||||
if (hslLastSortDir=="desc") text = "<i id=\"hslSort\" class=\"bi bi-sort-up\"></i>" + headers[hslLastSort].innerText;
|
"#tblHeardStationList > thead > tr > th"
|
||||||
else text = "<i id=\"hslSort\" class=\"bi bi-sort-down\"></i>" + headers[hslLastSort].innerText;
|
);
|
||||||
|
if (hslLastSortDir == "desc")
|
||||||
|
text =
|
||||||
|
'<i id="hslSort" class="bi bi-sort-up"></i>' +
|
||||||
|
headers[hslLastSort].innerText;
|
||||||
|
else
|
||||||
|
text =
|
||||||
|
'<i id="hslSort" class="bi bi-sort-down"></i>' +
|
||||||
|
headers[hslLastSort].innerText;
|
||||||
headers[hslLastSort].innerHTML = text;
|
headers[hslLastSort].innerHTML = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1152,7 +1152,9 @@
|
||||||
<table class="table table-sm" id="tblHeardStationList">
|
<table class="table table-sm" id="tblHeardStationList">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" id="thTime"><i id="hslSort" class="bi bi-sort-up"></i>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>
|
||||||
|
|
Loading…
Reference in a new issue