felixhagspiel / jsOnlyLightbox

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

Same image with same name twice is not working #30

Closed revelon closed 8 years ago

revelon commented 8 years ago

For some reason, when there are two identical images (and with identical caption), it is not possible to navigate further, for example there: https://uloz.to/soubory/Dalin/kamaradky-kamaradi/ Edge case, but still, perhaps worth fixing...

felixhagspiel commented 8 years ago

Unfortunately this is related to this line of code: https://github.com/felixhagspiel/jsOnlyLightbox/blob/master/js/lightbox.js#L246

A solution would be to add numbers at initialization of the box. I will look into that