We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0418e commit be318a6Copy full SHA for be318a6
1 file changed
assets/js/field-image.js
@@ -56,12 +56,12 @@ function updateImagePreview(fileInput, container) {
56
}
57
58
const objectUrl = URL.createObjectURL(file);
59
- const lightboxId = 'ea-lightbox-preview-' + Math.random().toString(36).substring(2, 10);
+ const lightboxId = `ea-lightbox-preview-${Math.random().toString(36).substring(2, 10)}`;
60
61
const link = document.createElement('a');
62
link.href = '#';
63
link.className = 'ea-lightbox-thumbnail';
64
- link.setAttribute('data-ea-lightbox-content-selector', '#' + lightboxId);
+ link.setAttribute('data-ea-lightbox-content-selector', `#${lightboxId}`);
65
66
const img = document.createElement('img');
67
img.src = objectUrl;
0 commit comments