update dynamic list

This commit is contained in:
shoopea 2024-11-16 12:17:41 +01:00
parent 106be0e2b2
commit 9eb0636331
2 changed files with 7 additions and 3 deletions

View File

@ -17,5 +17,12 @@ $(document).ready(function () {
map_list.push("de_overpass");
map_list.push("de_thera");
map_list.push("de_vertigo");
$('#map').empty();
for (var i = 0; i < map_list.length; i++) {
const opt = '<option value="' + map_list[i] + '">' + map_list[i] + '</option>'
$('#map').append(opt);
}
}
});

View File

@ -107,9 +107,6 @@
<div class="mb-3">
<label for="map" class="form-label">Map:</label>
<select id="map" name="map" class="form-select maps">
<% for (var i = 0; i < map_list.length; i++) { %>
<option value="<%map_list[i]%>"><%map_list[i]%></option>
<% } %>
</select>
</div>
<div class="mb-3">