From d76896edd8083d86710b4ec0af33ed05d2c76cbb Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 5 Jun 2024 15:11:02 +0100 Subject: [PATCH] [Station Locations] Added New Zealand States --- application/views/station_profile/edit.php | 25 ++++++++++++++++++++++ assets/js/sections/station_locations.js | 6 +++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index 9709055c..2baa1c28 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -605,6 +605,31 @@ +
+ + + +
+ +
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index 0c9becf3..b9acbf05 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -37,12 +37,12 @@ $(document).ready( function () { '148': 'venezuela_state', '150': 'australia_state', '163': 'png_state', + '170': 'nz_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").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").hide(); /** * Gets the selected DXCC ID and shows the corresponding state. */ @@ -66,7 +66,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").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").hide(); // Show the selected state $("#" + stateToShow).show();