Wrap img in link to high-res version
This commit is contained in:
parent
b1741f2b87
commit
641647a47f
@ -156,8 +156,13 @@ function renderCurrentFile() {
|
||||
const currentFileDiv = document.getElementById('current-file');
|
||||
currentFileDiv.innerHTML = "";
|
||||
if (currentFile) {
|
||||
// wrap the file in link to the full resolution version served at images-full
|
||||
let a = document.createElement("a");
|
||||
a.href = stagingPath.replace("images/", "images-full/") + currentFile;
|
||||
a.target = "_blank";
|
||||
let element = createMediaFileElement(currentFile, true);
|
||||
currentFileDiv.appendChild(element);
|
||||
a.appendChild(element);
|
||||
currentFileDiv.appendChild(a);
|
||||
} else {
|
||||
currentFileDiv.innerHTML = splash;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user