diff --git a/application/views/station_profile/edit.php b/application/views/station_profile/edit.php index 6d9b39ad..f2481b5b 100644 --- a/application/views/station_profile/edit.php +++ b/application/views/station_profile/edit.php @@ -247,6 +247,22 @@ +
+ + + +
+ +
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js index ef283b01..f82e962b 100644 --- a/assets/js/sections/station_locations.js +++ b/assets/js/sections/station_locations.js @@ -12,6 +12,7 @@ $(document).ready( function () { $("#canada_state").hide(); $("#aland_state").hide(); $("#asiatic_russia_state").hide(); + $("#belarus_state").hide(); var selectedDXCCID = $('#dxcc_select').find(":selected").val(); @@ -37,6 +38,15 @@ $(document).ready( function () { $("#us_state").hide(); } + // Show Belarus States if Belarus is selected + if(selectedDXCCID == '27'){ + $("#belarus_state").show(); + $("#asiatic_russia_state").hide(); + $("#aland_state").hide(); + $("#canada_state").hide(); + $("#us_state").hide(); + } + $('#dxcc_select').change(function(){ if($(this).val() == '1'){ // or this.value == 'volvo' console.log("CANADA!"); @@ -51,6 +61,12 @@ $(document).ready( function () { $("#aland_state").hide(); $("#canada_state").hide(); $("#us_state").hide(); + } else if($(this).val() == '27') { + $("#belarus_state").show(); + $("#asiatic_russia_state").hide(); + $("#aland_state").hide(); + $("#canada_state").hide(); + $("#us_state").hide(); } else { $("#canada_state").hide(); $("#us_state").show();