Skip to content

Commit

Permalink
Add lightbox to thumbnails on wiki pages / v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tofi86 committed Nov 22, 2015
1 parent 69f1154 commit 75e4db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/javascripts/lightbox.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(document).ready(function() {

// modify thumbnail links and add filename to url to support fancybox preview
$("div.journal a.thumbnail").attr('href', function(i, v){
$("div.wiki a.thumbnail").attr('href', function(i, v){
return v + '/' + $(this).attr('title');
});

Expand All @@ -15,7 +15,7 @@ $(document).ready(function() {
"div.journal ul.details a[href$='.JPEG']," +
"div.journal ul.details a[href$='.gif']," +
"div.journal ul.details a[href$='.GIF']," +
"div.journal a.thumbnail," +
"div.wiki a.thumbnail," +
"div.attachments a.swf").fancybox({
prevEffect : 'none',
nextEffect : 'none',
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name 'Redmine Lightbox 2'
author 'Tobias Fischer'
description 'This plugin lets you preview image, pdf and swf attachments in a lightbox.'
version '0.1.5'
version '0.1.6'
url 'https://github.com/paginagmbh/redmine_lightbox2'
requires_redmine :version => '2.6'
end
Expand Down

0 comments on commit 75e4db6

Please sign in to comment.