From 114e141a2f2a26bb617d2a2ca0944f53fc7be689 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Wed, 28 May 2025 13:18:50 +0200 Subject: [PATCH] s --- admin-dashboard.html | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/admin-dashboard.html b/admin-dashboard.html index 435168a..8d5f59c 100644 --- a/admin-dashboard.html +++ b/admin-dashboard.html @@ -1432,9 +1432,6 @@ function updateBannerPreview() { bannerPreview.classList.remove('with-image'); } - // Update the banner content with the generated HTML - bannerPreviewContent.innerHTML = bannerContent; - // Apply additional styles from the template if (template) { // Update banner preview container styles @@ -1452,6 +1449,9 @@ function updateBannerPreview() { }); } + // Update the banner content with the generated HTML + bannerPreviewContent.innerHTML = bannerContent; + // Add event listeners for width/height changes const imageWidthInput = document.getElementById('bannerImageWidth'); const imageHeightInput = document.getElementById('bannerImageHeight'); @@ -1463,16 +1463,6 @@ function updateBannerPreview() { imageHeightInput.addEventListener('input', updateBannerPreview); } - // Wrap in link if provided - exactly match index.html but prevent clicks - if (bannerLink) { - content = `${content}`; - } - - // Update content - bannerPreviewContent.innerHTML = content; - // Make sure the preview is visible bannerPreview.style.visibility = 'visible';