From 736cf7e0655fda2bae54f8324aaf6a30c47f9bff Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Mon, 19 Feb 2024 23:30:09 +0100 Subject: [PATCH] final change because now it works --- parts/static/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parts/static/script.js b/parts/static/script.js index 430e72e..129994a 100755 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -46,7 +46,11 @@ function new_entry() { init_edit(-1); overlay_in(); container_onchange(); - + + // make map have names of containers for this one click + if (!$('img#map').attr('src').endsWith('/a')){ + $('img#map').attr('src', $('img#map').attr('src') + '/a') + } } function end_edit() {