From 04f284b403c8075db83e2e564f637a12520d347d Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 27 Jul 2024 11:55:58 +0200 Subject: [PATCH 1/2] set rst also on fav recall --- assets/js/sections/qso.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index 40efd1562..ec16d760e 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -226,6 +226,7 @@ $( document ).ready(function() { $('#frequency').val(favs[this.innerText].frequency); $('#selectPropagation').val(favs[this.innerText].prop_mode); $('#mode').val(favs[this.innerText].mode); + setRst($('.mode').val()); }); @@ -1183,7 +1184,7 @@ $( document ).ready(function() { // Change report based on mode $('.mode').change(function(){ - setRst($('.mode') .val()); + setRst($('.mode').val()); }); function convert_case(str) { From a685423a2d602f36ad632930fed5b0f12742747f Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sun, 28 Jul 2024 08:45:45 +0200 Subject: [PATCH 2/2] use .change() instead --- assets/js/sections/qso.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/js/sections/qso.js b/assets/js/sections/qso.js index ec16d760e..806e6d22b 100644 --- a/assets/js/sections/qso.js +++ b/assets/js/sections/qso.js @@ -225,8 +225,7 @@ $( document ).ready(function() { $('#frequency_rx').val(favs[this.innerText].frequency_rx); $('#frequency').val(favs[this.innerText].frequency); $('#selectPropagation').val(favs[this.innerText].prop_mode); - $('#mode').val(favs[this.innerText].mode); - setRst($('.mode').val()); + $('#mode').val(favs[this.innerText].mode).change(); });