felixhagspiel / jsOnlyLightbox

Responsive Lightbox in plain JS. No need for jQuery.
MIT License
157 stars 51 forks source link

Error in boxID #28

Closed inquartatech closed 8 years ago

inquartatech commented 8 years ago

Missed '.boxId' in document.getElementById(CTX.opt);

Must be :

if (CTX.opt.boxId) { CTX.box = document.getElementById(CTX.opt.boxId); }

felixhagspiel commented 8 years ago

Thanks!