Skip to content

Commit

Permalink
Lock site dropdown if no locations set.
Browse files Browse the repository at this point in the history
Lock site dropdown if no locations set.
  • Loading branch information
netaviator authored Apr 5, 2024
1 parent 4d10ef7 commit f6b9153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</a>
</div>
<div class="col-4 float-end">
<select class="form-select" onchange="window.location = this.options[this.selectedIndex].value">
<select class="form-select" onchange="window.location = this.options[this.selectedIndex].value" <?php if (count($templateData['locations']) == 0) echo 'disabled'; ?>>
<option selected><?php echo $templateData['current_location'] ?></option>
<?php foreach ($templateData['locations'] as $location => $link): ?>
<option value="<?php echo $link ?>"><?php echo $location ?></option>
Expand Down

0 comments on commit f6b9153

Please sign in to comment.