cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-07-28 23:31:57 +03:00
parent fd3d2d2e5e
commit ffb3fcdf20

View File

@ -688,8 +688,6 @@ var Gallery = {
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// XXX ignore click from blur... // XXX ignore click from blur...
// XXX might be a good idea to close on click outside the image...
// XXX esc from context menu closes view...
var Lightbox = { var Lightbox = {
dom: undefined, dom: undefined,
gallery: undefined, gallery: undefined,
@ -854,7 +852,7 @@ var setupGallery = function(gallery){
var setup = function(){ var setup = function(){
var galleries = document.body.querySelectorAll('.gallery') var galleries = document.body.querySelectorAll('.gallery')
for(var gallery of galleries){ for(var gallery of galleries){
// XXX this is wrong... // XXX this is wrong -- handle multiple galleries...
window.gallery = setupGallery(gallery) } window.gallery = setupGallery(gallery) }
// keyboard... // keyboard...
document.addEventListener('keydown', function(evt){ document.addEventListener('keydown', function(evt){