dont show the old image in expanded image modal

master
Aevann 2023-04-25 09:10:28 +02:00
parent b6d4ecfb40
commit 3fb0de1cd7
1 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,10 @@ function expandImage(url) {
if(e.ctrlKey || e.metaKey || e.shiftKey || e.altKey)
return;
e.preventDefault();
document.getElementById("desktop-expanded-image").src = '';
document.getElementById("desktop-expanded-image-wrap-link").href = '';
if (!url)
{
url = e.target.dataset.src