Skip to content

Commit

Permalink
see cl 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Sep 30, 2019
1 parent 6cd6ab0 commit 24025b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [2.0.1] - 2019-09-30

### Fixed
- figcaption issue

## [2.0.0] - 2019-03-04

### Removed
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/assets/js/contao-lightbox-gallery-bundle.js
Expand Up @@ -20,9 +20,9 @@ class LightboxGalleryBundle {
'href': link.href,
'type': 'image'
},
caption = link.closest('figure').querySelectorAll('figcaption');
caption = link.closest('figure') !== null ? link.closest('figure').querySelectorAll('figcaption') : '';

if (caption.length > 0) {
if (caption !== '') {
element.description = caption.html();
}

Expand Down

0 comments on commit 24025b4

Please sign in to comment.