From e68ddd0ccf8ec451cabadf165bfd3a9727d65204 Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Tue, 28 Apr 2026 15:21:41 +0200 Subject: [PATCH] changed position of photo toggle button --- public/js/app.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 5b2c2e4..2d55fa9 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -409,11 +409,6 @@ function buildPopupHtml(feature) { if (props.photo_path) { html += '' + - ''; } @@ -423,15 +418,23 @@ function buildPopupHtml(feature) { ' · ' + dateStr + ''; - // Vote Buttons + // Vote Buttons and Photo Toggle html += ''; + ''; + + // Photo Toggle Button + if (props.photo_path) { + html += ''; + } + + html += ''; // Edit and Delete Buttons for Author or Admin if (props.browser_id === browserId || (typeof IS_ADMIN !== 'undefined' && IS_ADMIN)) {