Merge pull request #335 from HB9HIL/quickswitcher_station_qso

[QUICKSWITCHER] Change Station in QSO tab aswell if active station is changed
This commit is contained in:
HB9HIL
2024-05-03 21:14:49 +02:00
committed by GitHub

View File

@@ -895,6 +895,13 @@ function set_active_loc_quickswitcher(new_active) {
if (typeof reloadStations === 'function') {
reloadStations();
}
// If the user is in the QSO view we change the station in the QSO input aswell
if (window.location.pathname.indexOf("qso") !== -1) {
if ($('#stationProfile option[value="' + new_active + '"]').length > 0) {
$('#stationProfile').val(new_active);
}
}
},
error: function(xhr, status, error) {
console.error('Error while setting the new active location: ' + error);