forked from MarseyWorld/MarseyWorld
dont show the old image in expanded image modal
parent
b6d4ecfb40
commit
3fb0de1cd7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue