From 68e10ec2ea36ab511277acab388ffee071295769 Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Mon, 19 Feb 2024 23:23:41 +0100 Subject: [PATCH] maybe working with add part button --- parts/static/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parts/static/script.js b/parts/static/script.js index 4b45c17..430e72e 100755 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -24,8 +24,10 @@ function init_edit(partID) { $('table#details tr#notes td p').hide(); // make map have names of containers for this one click - $('img#map').attr('src', $('img#map').attr('src') + '/a') - + if (!$('img#map').attr('src').endsWith('/a')){ + $('img#map').attr('src', $('img#map').attr('src') + '/a') + } + // var newButton = '
'; // $('.round-button-left').replaceWith(newButton); $('#edit-button').html('');