From 261f7607b5fc2cf7dd4c8c3dd07c49bb1c62d8c5 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Tue, 24 Nov 2020 19:33:39 +0000 Subject: [PATCH] Some code cleanup --- html/js/functions.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/html/js/functions.js b/html/js/functions.js index 646ba5b..36e9631 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -89,7 +89,6 @@ function getBER(logline) { } } - function getAddToQSO(logline) { callsign = logline.substring(logline.indexOf("from") + 5, logline.indexOf("to")).trim(); retval = '
'; @@ -173,21 +172,21 @@ function clocktime() { s = now.getSeconds(); m = leadingZero(m); s = leadingZero(s); - return h + ':' + m + ':' + s; + return h + ':' + m + ':' + s; } - + function leadingZero(zahl) { - zahl = (zahl < 10 ? '0' : '' )+ zahl; - return zahl; + zahl = (zahl < 10 ? '0' : '' )+ zahl; + return zahl; } function copyToQSO(callsign) { $(document).ready(function() { t_qso.row.add( [ - callsign, - new Date().toUTCString() - ] ).draw(); + callsign, + new Date().toUTCString() + ] ).draw(); }); alert("" + callsign + " added to in QSO-Tab"); @@ -582,6 +581,7 @@ $(document).ready(function() { default: var element = document.getElementById("currtx-tab"); element.classList.add("active"); + element = document.getElementById("currtx"); element.classList.add("show"); element.classList.add("active");