Skip to content
Snippets Groups Projects
Verified Commit 50689d2b authored by Jonas Leder's avatar Jonas Leder
Browse files

apply id from jl-img to inner image element

parent f0e92fe0
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,13 @@ class CustomImage extends HTMLElement {
image.setAttribute("style", this.getAttribute("style"));
image.setAttribute("width", this.getAttribute("width"));
image.setAttribute("height", this.getAttribute("height"));
image.setAttribute("id", this.getAttribute("id"));
image.setAttribute("loading", "lazy");
image.setAttribute("original-src", originalURL);
this.appendChild(image);
this.setAttribute("id", "");
if(!(this.getAttribute("data-noPreview") === "true")) {
image.onclick = () => {
const instance = basicLightbox.create(`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment