From 6d8804b1891a9e7dfe4b701761a94ff5e07dac60 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 12:29:33 +0100 Subject: [PATCH 01/11] changed quicklog form to text --- application/views/interface_assets/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index eaf61e65c..abb948b32 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -264,7 +264,7 @@ function handleKeyPress(event) {
- + From 5d9d77c6ab80c4f314c831b41804e7aa29b11dfc Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 22:17:01 +0100 Subject: [PATCH 06/11] changed quicklog to localstorage --- application/views/interface_assets/header.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index 8c5e8afeb..9a8bf8c4f 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -237,12 +237,16 @@ function submitForm(action) { if (action === 'search') { form.action = ""; form.method = "post"; - } else if (action === 'qso') { - form.action = ""; // Set ?manual=0 to 1 if go to "Post-QSO" logging - form.method = "post"; } form.submit(); } + function logQuicklog() { + if (localStorage.getItem("quicklogCallsign") !== "") { + localStorage.removeItem("quicklogCallsign"); + } + localStorage.setItem("quicklogCallsign", $("input[name='searchBar']").val()); + window.open("", "_self"); + } session->userdata('user_quicklog_enter') == 1) { ?> - + - - From f270ddc1fcd160491568f0008a7a31894c07708b Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 22:17:24 +0100 Subject: [PATCH 07/11] removed post value in callsign --- application/views/qso/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/qso/index.php b/application/views/qso/index.php index bb98b60fc..3222af4bd 100755 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -109,7 +109,7 @@
optionslib->get_option('dxcache_url') != '') { ?>  - +
From 2c7b588fa26d928f1c9f5233445e6ccc38bbf2f5 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 22:17:49 +0100 Subject: [PATCH 08/11] lookup logic if localstorage is not empty --- assets/js/sections/qso.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index 197657f35..809bb88b3 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -1,10 +1,12 @@ $( document ).ready(function() { setTimeout(function() { - var callsignValue = $("#callsign").val(); - if (callsignValue != "") { - $("#mode").focus(); + var callsignValue = localStorage.getItem("quicklogCallsign"); + if (callsignValue !== "") { + console.log("wir sind in der Funktion"); + $("#callsign").val(callsignValue); + $("#mode").focus(); } - }, 100); + }, 100); var favs={}; get_fav(); From 56ff6fd8e5bbc8b3a4ded5d17f48490566d41343 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 22:19:47 +0100 Subject: [PATCH 09/11] empty localstorage after lookup --- assets/js/sections/qso.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index 809bb88b3..a11467722 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -2,9 +2,9 @@ $( document ).ready(function() { setTimeout(function() { var callsignValue = localStorage.getItem("quicklogCallsign"); if (callsignValue !== "") { - console.log("wir sind in der Funktion"); $("#callsign").val(callsignValue); $("#mode").focus(); + localStorage.removeItem("quicklogCallsign"); } }, 100); var favs={}; From 0088d123998580c455aa2c0822a43d3c1950831d Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 22:20:18 +0100 Subject: [PATCH 10/11] fixed enter action --- application/views/interface_assets/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index 9a8bf8c4f..41dfb5b09 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -260,7 +260,7 @@ function handleKeyPress(event) { From 14b2d8c4bc75efeae4baff0522ce5c3effc015c8 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Mon, 6 Nov 2023 23:00:53 +0100 Subject: [PATCH 11/11] fixed enter problem --- application/views/interface_assets/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index 41dfb5b09..a89ce6b27 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -265,7 +265,7 @@ function handleKeyPress(event) { } - +