Skip to content

Commit

Permalink
bugfix for javascript bugfix for IE11 // refs #66
Browse files Browse the repository at this point in the history
adds missing return. d'oh!
  • Loading branch information
tofi86 committed Sep 26, 2019
1 parent 6eaad19 commit 3c3672e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/javascripts/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ $(document).ready(function() {
// Add Fancybox to image links
$("div.attachments a.lightbox")
.add("div.attachments a.lightbox_preview")
.add("div.journal ul.details a:not(.icon-download)").filter(function(index,elem) { $(elem).attr('href').match(extensionRegexImage) })
.add("div.journal ul.details a:not(.icon-download)").filter(function(index,elem) { return $(elem).attr('href').match(extensionRegexImage) })
.add("div.journal div.thumbnails a")
.add("div.wiki a.thumbnail")
.add(".controller-dmsf #browser a.lightbox")
Expand All @@ -135,8 +135,8 @@ $(document).ready(function() {

// Add Fancybox to PDF links
$("div.attachments a.pdf")
.add("div.journal ul.details a:not(.icon-download)").filter(function(index,elem) { $(elem).attr('href').match(/\.pdf$/i) })
.add("div.journal div.thumbnails a").filter(function(index,elem) { $(elem).attr('href').match(/\.pdf$/i) })
.add("div.journal ul.details a:not(.icon-download)").filter(function(index,elem) { return $(elem).attr('href').match(/\.pdf$/i) })
.add("div.journal div.thumbnails a").filter(function(index,elem) { return $(elem).attr('href').match(/\.pdf$/i) })
.fancybox({
animationEffect : 'zoom',
animationDuration : 200,
Expand Down

0 comments on commit 3c3672e

Please sign in to comment.