Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
photoswipe-3380144
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
photoswipe-3380144
Commits
0cd2205c
Commit
0cd2205c
authored
5 years ago
by
Julian Pustkuchen
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3023442
by iKristjan, Anybody: Links without thumbnails not working
parent
feb32beb
No related branches found
Branches containing commit
Tags
8.x-2.9
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/photoswipe.jquery.js
+4
-0
4 additions, 0 deletions
js/photoswipe.jquery.js
with
4 additions
and
0 deletions
js/photoswipe.jquery.js
+
4
−
0
View file @
0cd2205c
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment