From 51886c73188f476247f4c54b5f05535b23b3cc53 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 5 Jun 2024 15:08:34 +0100 Subject: [PATCH] [Station Location] Added Papua New Guinea States --- application/views/station_profile/edit.php | 28 ++++++++++++++++++++++ assets/js/sections/station_locations.js | 5 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index a6bb4db7..9709055c 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -577,6 +577,34 @@ +
+ + + +
+
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index 8278eff7..0c9becf3 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -36,11 +36,12 @@ $(document).ready( function () { '291': 'us_state', '148': 'venezuela_state', '150': 'australia_state', + '163': 'png_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").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").hide(); /** * Gets the selected DXCC ID and shows the corresponding state. @@ -65,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").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").hide(); // Show the selected state $("#" + stateToShow).show();