From ca12d2406e69df76bb04c7752dde84e54d738ec2 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 22 May 2024 13:43:31 +0100 Subject: [PATCH] [Station Locations] Added Asiatic Russia States --- application/views/station_profile/edit.php | 46 ++++++++++++++++++++++ assets/js/sections/station_locations.js | 16 ++++++++ 2 files changed, 62 insertions(+) diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index f10a1388..6d9b39ad 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -200,6 +200,52 @@ +
+ + + +
+
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index 468b9a4d..ef283b01 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -11,12 +11,14 @@ $(document).ready( function () { $("#canada_state").hide(); $("#aland_state").hide(); + $("#asiatic_russia_state").hide(); var selectedDXCCID = $('#dxcc_select').find(":selected").val(); if(selectedDXCCID == '1'){ $("#canada_state").show(); $("#us_state").hide(); + $("#asiatic_russia_state").hide(); } // Show Aland States if Aland is selected @@ -24,6 +26,15 @@ $(document).ready( function () { $("#aland_state").show(); $("#canada_state").hide(); $("#us_state").hide(); + $("#asiatic_russia_state").hide(); + } + + // Show Asiatic Russia States if Asiatic Russia is selected + if(selectedDXCCID == '15'){ + $("#asiatic_russia_state").show(); + $("#aland_state").hide(); + $("#canada_state").hide(); + $("#us_state").hide(); } $('#dxcc_select').change(function(){ @@ -35,6 +46,11 @@ $(document).ready( function () { $("#aland_state").show(); $("#canada_state").hide(); $("#us_state").hide(); + } else if($(this).val() == '15') { + $("#asiatic_russia_state").show(); + $("#aland_state").hide(); + $("#canada_state").hide(); + $("#us_state").hide(); } else { $("#canada_state").hide(); $("#us_state").show();