From f40b244f737ae7e10a7f3dd8f9f65ba75ddd94ea Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 5 Jun 2024 15:13:37 +0100 Subject: [PATCH] [Station Location] Added Belgium States --- application/views/station_profile/edit.php | 18 ++++++++++++++++++ assets/js/sections/station_locations.js | 5 +++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index 2baa1c28..4c4f4a42 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -629,6 +629,24 @@ +
+ + + +
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index b9acbf05..4d28ed9e 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -38,11 +38,12 @@ $(document).ready( function () { '150': 'australia_state', '163': 'png_state', '170': 'nz_state', + '209': 'belgium_state', '6': 'us_state' // Alaska }; // Hide all states initially - $("#canada_state, #aland_state, #asiatic_russia_state, #belarus_state, #mexico_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #us_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state").hide(); + $("#canada_state, #aland_state, #asiatic_russia_state, #belarus_state, #mexico_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #us_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state, #belgium_state").hide(); /** * Gets the selected DXCC ID and shows the corresponding state. */ @@ -66,7 +67,7 @@ $(document).ready( function () { var stateToShow = stateMap[selectedValue] || stateMap['default']; // Hide all states - $("#mexico_state, #belarus_state, #asiatic_russia_state, #aland_state, #canada_state, #us_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state").hide(); + $("#mexico_state, #belarus_state, #asiatic_russia_state, #aland_state, #canada_state, #us_state, #eu_russia_state, #argentina_state, #brazil_state, #chile_state, #paraguay_state, #korea_state, #uruguay_state, #venezuela_state, #australia_state, #png_state, #nz_state, #belgium_state").hide(); // Show the selected state $("#" + stateToShow).show();