mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user