From 0c9e84ddf2d1551893e664bd2b7858e354a2561d Mon Sep 17 00:00:00 2001 From: Mashintime Date: Mon, 15 May 2023 21:13:50 +0000 Subject: [PATCH] Prettified Code! --- gui/preload-main.js | 18 +++++++++++++----- gui/src/index.html | 4 +++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gui/preload-main.js b/gui/preload-main.js index cc2f23c0..30cf16ab 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -1646,12 +1646,20 @@ window.addEventListener("DOMContentLoaded", () => { }); }); -function resetSortIcon(){ +function resetSortIcon() { document.getElementById("hslSort").remove(); - let headers = document.querySelectorAll("#tblHeardStationList > thead > tr > th"); - if (hslLastSortDir=="desc") text = "" + headers[hslLastSort].innerText; - else text = "" + headers[hslLastSort].innerText; - headers[hslLastSort].innerHTML=text; + let headers = document.querySelectorAll( + "#tblHeardStationList > thead > tr > th" + ); + if (hslLastSortDir == "desc") + text = + '' + + headers[hslLastSort].innerText; + else + text = + '' + + headers[hslLastSort].innerText; + headers[hslLastSort].innerHTML = text; } function connectedStation(data) { diff --git a/gui/src/index.html b/gui/src/index.html index 479588d8..18b9adfb 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -1152,7 +1152,9 @@ - +
Time + Time + Frequency   DXCall