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('');