Skip to content

Commit

Permalink
remove lightbox
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriqueMoe committed Feb 18, 2025
1 parent b315f7a commit 01cf3e2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/public/album.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
const publicToken = "<%= publicToken %>";
const albumTooBigToDownload = <%= albumTooBigToDownload %>;
</script>
<script src="/assets/vendor/fslightbox/fslightbox.js"></script>
<script src="/assets/custom/js/album.js"></script>
</body>
</html>
6 changes: 0 additions & 6 deletions src/public/assets/custom/js/album.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ Site.loadPage(async site => {
return iconMap.get(key) ?? iconMap.get(mime) ?? defaultIcon;
}

function reloadLightbox(){
refreshFsLightbox();
fsLightbox.props.loadOnlyCurrentSource = true;
}

function renderAlbum(album, viewMode) {
albumNameElt.innerText = album.name;
if (album.files.length === 0) {
Expand All @@ -135,7 +130,6 @@ Site.loadPage(async site => {
case "card":
renderCard(album);
window.location.hash = "card";
reloadLightbox();
}


Expand Down
Loading

0 comments on commit 01cf3e2

Please sign in to comment.