Skip to content
Snippets Groups Projects
Commit 0cd2205c authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3023442 by iKristjan, Anybody: Links without thumbnails not working

parent feb32beb
No related branches found
Tags 8.x-2.9
No related merge requests found
......@@ -112,6 +112,10 @@
var tn = galleryElement.find('a.photoswipe:eq(' + index + ') img');
if (tn.length == 0) {
tn = galleryElement.find('a.photoswipe:eq(0) img');
if (tn.length == 0) {
// Return undefined if still null, see https://www.drupal.org/project/photoswipe/issues/3023442
return undefined;
}
}
var tw = tn.width();
var tpos = tn.offset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment