From b9142f71e097a993031a753f9de055724ef58272 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Mon, 19 Feb 2024 23:09:23 +0100 Subject: [PATCH] made map show annotation on edit --- parts/static/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parts/static/script.js b/parts/static/script.js index 1f035dd..4b45c17 100755 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -23,7 +23,8 @@ function init_edit(partID) { $('input[name=notes-input]').show(); $('table#details tr#notes td p').hide(); - $('img#map').attr('src', 'parts/map/' + data.container_id + '/a'); + // make map have names of containers for this one click + $('img#map').attr('src', $('img#map').attr('src') + '/a') // var newButton = '
'; // $('.round-button-left').replaceWith(newButton);