From 1b24991a421135d6dd0b0ae89e316fed05c0ebba Mon Sep 17 00:00:00 2001 From: Elad Bernard Haviv Date: Fri, 4 Aug 2023 10:31:50 +0300 Subject: [PATCH] removed redundant functions and changed addMarker functionality --- index.html | 3 ++ modules/ui/markers-overview.js | 7 ++++ modules/ui/tools.js | 70 +++++----------------------------- 3 files changed, 19 insertions(+), 61 deletions(-) diff --git a/index.html b/index.html index 54d08869..4a4a4a80 100644 --- a/index.html +++ b/index.html @@ -5509,6 +5509,9 @@
+ - `; }); const table = `${headers}${lines.join("")}
`; @@ -929,12 +883,6 @@ function configMarkersGeneration() { selectIcon(input.value, icon => (input.value = icon)); }); }); - - document.querySelectorAll('.add-marker').forEach((button) => { - button.addEventListener('click', (event) => { - toggleAddRandomMarker(Markers.getConfig().find(({type}) => type === event.target.getAttribute('data-type')))(); - }); - }); } const applyChanges = () => {