mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:01:24 +00:00
Fix thumbnail image modal image url
This commit is contained in:
@@ -2353,10 +2353,8 @@ function initDetailsPageImageModal() {
|
||||
const imageUrl = this.getAttribute('data-image-url');
|
||||
const imageTitle = this.getAttribute('data-image-title') || 'Image Preview';
|
||||
|
||||
// Update the full image URL (replace _thumb with the full image)
|
||||
const fullImageUrl = imageUrl.replace('_thumb.jpg', '.jpg');
|
||||
|
||||
imageModalImage.src = fullImageUrl;
|
||||
// Use the image URL as-is (keeping _thumb suffix)
|
||||
imageModalImage.src = imageUrl;
|
||||
imageModalTitle.textContent = imageTitle;
|
||||
imageModal.classList.remove('hidden');
|
||||
imageModal.style.display = 'flex';
|
||||
|
||||
Reference in New Issue
Block a user