Skip to content

Commit 827863d

Browse files
committed
Add lightbox to thumbnails on wiki pages / v0.2.4
1 parent fda5f6a commit 827863d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/javascripts/lightbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$(document).ready(function() {
22

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

@@ -15,7 +15,7 @@ $(document).ready(function() {
1515
"div.journal ul.details a[href$='.JPEG']," +
1616
"div.journal ul.details a[href$='.gif']," +
1717
"div.journal ul.details a[href$='.GIF']," +
18-
"div.journal a.thumbnail," +
18+
"div.wiki a.thumbnail," +
1919
"div.attachments a.swf," +
2020
".avatar a").fancybox({
2121
prevEffect : 'none',

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name 'Redmine Lightbox 2'
88
author 'Tobias Fischer'
99
description 'This plugin lets you preview image, pdf and swf attachments in a lightbox.'
10-
version '0.2.3'
10+
version '0.2.4'
1111
url 'https://github.com/paginagmbh/redmine_lightbox2'
1212
requires_redmine :version_or_higher => '3.0.0'
1313
end

0 commit comments

Comments
 (0)