From 9eb06363312c394350cac8a86d68ff31466f3aa6 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 16 Nov 2024 12:17:41 +0100 Subject: [PATCH] update dynamic list --- public/js/maps.js | 7 +++++++ views/manage.ejs | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/maps.js b/public/js/maps.js index ef2a984..582764b 100644 --- a/public/js/maps.js +++ b/public/js/maps.js @@ -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 = '' + $('#map').append(opt); + } } }); diff --git a/views/manage.ejs b/views/manage.ejs index 7241f53..1a0f487 100644 --- a/views/manage.ejs +++ b/views/manage.ejs @@ -107,9 +107,6 @@