update dynamic list
This commit is contained in:
		
							parent
							
								
									106be0e2b2
								
							
						
					
					
						commit
						9eb0636331
					
				@ -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);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@ -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">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user