mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
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.
This commit is contained in:
parent
3acfa64e57
commit
8c6fc6b720
1 changed files with 13 additions and 0 deletions
|
|
@ -1964,6 +1964,19 @@ $(document).ready(function() {
|
|||
|
||||
// Update UI from CAT data
|
||||
const updateFromCAT = (radioID) => {
|
||||
|
||||
// If manual logging is forced (manual=1), skip CAT updates entirely
|
||||
const manualParam = new URLSearchParams(window.location.search).get('manual');
|
||||
const manualMode = manualParam === '1';
|
||||
if (manualMode) {
|
||||
console.log("Manual QSO entry enabled, skipping CAT update.");
|
||||
|
||||
// Set Radio to Zero
|
||||
$('#radio').val('0').trigger('change');
|
||||
resetUI();
|
||||
return;
|
||||
}
|
||||
|
||||
if (radioID === '0') return;
|
||||
|
||||
$.getJSON(`radio/json/${radioID}`, (data) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue