improve expanding images

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-11 09:24:01 +02:00
parent 126a7b4ae3
commit a6f1fb17c9
2 changed files with 3 additions and 3 deletions

View File

@ -130,8 +130,8 @@ function expandDesktopImage(url) {
e.preventDefault();
if (!url)
{
url = e.target.src
if (!url) url = e.target.dataset.src
url = e.target.dataset.src
if (!url) url = e.target.src
}
document.getElementById("desktop-expanded-image").src = url.replace("200w_d.webp", "giphy.webp");
document.getElementById("desktop-expanded-image-link").href = url;

View File

@ -17,7 +17,7 @@ set CACHE_VER = {
'css/win98.css': 63,
'js/award_modal.js': 254,
'js/bootstrap.js': 277,
'js/bootstrap.js': 278,
'js/category_modal.js': 200,
'js/comments+submission_listing.js': 265,
'js/submission_listing.js': 261,