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 05a6448 commit 3a6c28c
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 @@ -98,7 +98,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 @@ -112,8 +112,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({
type : 'iframe',
prevEffect : 'none',
Expand Down

0 comments on commit 3a6c28c

Please sign in to comment.