Skip to content

Commit 8c6fc6b

Browse files
committed
Skip CAT updates when manual logging is enabled
Added a check for the 'manual' URL parameter to bypass CAT data updates and reset the UI when manual QSO entry is active. This ensures that CAT updates do not interfere with manual logging workflows.
1 parent 3acfa64 commit 8c6fc6b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

application/views/interface_assets/footer.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,6 +1964,19 @@ function getUTCDateStamp(el) {
19641964

19651965
// Update UI from CAT data
19661966
const updateFromCAT = (radioID) => {
1967+
1968+
// If manual logging is forced (manual=1), skip CAT updates entirely
1969+
const manualParam = new URLSearchParams(window.location.search).get('manual');
1970+
const manualMode = manualParam === '1';
1971+
if (manualMode) {
1972+
console.log("Manual QSO entry enabled, skipping CAT update.");
1973+
1974+
// Set Radio to Zero
1975+
$('#radio').val('0').trigger('change');
1976+
resetUI();
1977+
return;
1978+
}
1979+
19671980
if (radioID === '0') return;
19681981

19691982
$.getJSON(`radio/json/${radioID}`, (data) => {

0 commit comments

Comments
 (0)