From 1c021189842a7ebe89444f5169258133ac85010c Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 23 May 2024 14:57:45 +0100 Subject: [PATCH] [Station Locations] Added Republic of Korea States --- application/views/station_profile/edit.php | 27 ++++++++++++++++++++++ assets/js/sections/station_locations.js | 7 +++--- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index 29b00586..7e31cfb8 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -476,6 +476,33 @@ +
+ + + +
+ +
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index 391d49da..4430e12a 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -19,11 +19,12 @@ $(document).ready( function () { '100': 'argentina_state', '108': 'brazil_state', '112': 'chile_state', - '132': 'paraguay_state' + '132': 'paraguay_state', + '137': 'korea_state', }; // 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").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").hide(); var selectedDXCCID = $('#dxcc_select').find(":selected").val(); var stateToShow = stateMap[selectedDXCCID]; @@ -41,7 +42,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").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").hide(); // Show the selected state $("#" + stateToShow).show();