From f4e2825730a1c90b4da6c4e3418ee0baa04894d8 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 4 Oct 2023 08:28:45 +0000 Subject: [PATCH 1/2] removed eventhandler Neither button nor function exists --- assets/js/winkey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/winkey.js b/assets/js/winkey.js index 8c41fb4a..c6195fe9 100644 --- a/assets/js/winkey.js +++ b/assets/js/winkey.js @@ -71,7 +71,7 @@ let statusBar = document.getElementById("statusBar"); //Couple the elements to the Events connectButton.addEventListener("click", clickConnect) sendButton.addEventListener("click", clickSend) -statusButton.addEventListener("click", clickStatus) +// statusButton.addEventListener("click", clickStatus) //When the connectButton is pressed async function clickConnect() { @@ -310,4 +310,4 @@ function getMacros() { const morsekey_func5_Button = document.getElementById('morsekey_func5'); morsekey_func5_Button.textContent = 'F5 (' + function5Name + ')'; }); -} \ No newline at end of file +} From 12a3b7d5ead8c4a4074c5c9e158420aeb4840ae0 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 4 Oct 2023 08:29:07 +0000 Subject: [PATCH 2/2] Check Winkey-option at session, not config --- application/views/interface_assets/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index f593e4bb..a08a0021 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -947,7 +947,7 @@ $(document).on('keypress',function(e) { uri->segment(1) == "qso") { ?> -config->item('winkey')) { ?> +session->userdata('isWinkeyEnabled')) { ?>