mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Prevent livelogging into POST-QSO
This commit is contained in:
@@ -738,13 +738,15 @@ function save_fav() {
|
||||
}
|
||||
|
||||
|
||||
var bc_bandmap = new BroadcastChannel('qso_window');
|
||||
bc_bandmap.onmessage = function (ev) {
|
||||
// Always respond to ping, regardless of manual mode
|
||||
// This allows bandmap to detect existing QSO windows
|
||||
if (qso_manual == 0) {
|
||||
var bc_bandmap = new BroadcastChannel('qso_window');
|
||||
bc_bandmap.onmessage = function (ev) {
|
||||
// respond ONLY to ping if we've an open live-window
|
||||
// Otherwise a spot will be filled accidently into an open POST-QSO Window
|
||||
if (ev.data == 'ping') {
|
||||
bc_bandmap.postMessage('pong');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Store pending references from bandmap to populate AFTER callsign lookup completes
|
||||
@@ -876,8 +878,9 @@ function populatePendingReferences(callsign, expectedSeq) {
|
||||
}, 100); // Small delay to let form settle
|
||||
}
|
||||
|
||||
var bc = new BroadcastChannel('qso_wish');
|
||||
bc.onmessage = function (ev) {
|
||||
if (qso_manual == 0) {
|
||||
var bc = new BroadcastChannel('qso_wish');
|
||||
bc.onmessage = function (ev) {
|
||||
// Handle ping/pong only when manual mode is disabled (qso_manual == 0)
|
||||
if (ev.data.ping) {
|
||||
if (qso_manual == 0) {
|
||||
@@ -940,8 +943,9 @@ bc.onmessage = function (ev) {
|
||||
$("#callsign").blur();
|
||||
}, delay);
|
||||
}
|
||||
} /* receive */
|
||||
} /* receive */
|
||||
|
||||
}
|
||||
$("#sat_name").on('change', function () {
|
||||
var sat = $("#sat_name").val();
|
||||
if (sat == "") {
|
||||
|
||||
Reference in New Issue
Block a user