kopia lustrzana https://github.com/magicbug/Cloudlog
[Station Locations] Added australia states
rodzic
d1360ed3aa
commit
83ce05642a
|
@ -561,6 +561,21 @@
|
|||
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" id="australia_state">
|
||||
<label for="stateInput"><?php echo lang("station_location_state"); ?></label>
|
||||
<select class="form-select" name="station_state" id="StateHelp" aria-describedby="stationCntyInputHelp">
|
||||
<option value=""></option>
|
||||
<option value="ACT" <?php if($my_station_profile->state == "ACT") { echo "selected"; } ?>>Australian Capital Territory</option>
|
||||
<option value="NSW" <?php if($my_station_profile->state == "NSW") { echo "selected"; } ?>>New South Wales</option>
|
||||
<option value="VIC" <?php if($my_station_profile->state == "VIC") { echo "selected"; } ?>>Victoria</option>
|
||||
<option value="QLD" <?php if($my_station_profile->state == "QLD") { echo "selected"; } ?>>Queensland</option>
|
||||
<option value="SA" <?php if($my_station_profile->state == "SA") { echo "selected"; } ?>>South Australia</option>
|
||||
<option value="WA" <?php if($my_station_profile->state == "WA") { echo "selected"; } ?>>Western Australia</option>
|
||||
<option value="TAS" <?php if($my_station_profile->state == "TAS") { echo "selected"; } ?>>Tasmania</option>
|
||||
<option value="NT" <?php if($my_station_profile->state == "NT") { echo "selected"; } ?>>Northern Territory</option>
|
||||
</select>
|
||||
<small id="StateHelp" class="form-text text-muted"><?php echo lang("station_location_state_hint"); ?></small>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- US County -->
|
||||
|
|
|
@ -35,11 +35,12 @@ $(document).ready( function () {
|
|||
'144': 'uruguay_state',
|
||||
'291': 'us_state',
|
||||
'148': 'venezuela_state',
|
||||
'150': 'australia_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").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").hide();
|
||||
|
||||
/**
|
||||
* Gets the selected DXCC ID and shows the corresponding state.
|
||||
|
@ -64,7 +65,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").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").hide();
|
||||
|
||||
// Show the selected state
|
||||
$("#" + stateToShow).show();
|
||||
|
|
Ładowanie…
Reference in New Issue