summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-28 18:53:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-28 18:53:33 +0100
commit385e33fe4132f18798242edfa961d9ec800971cd (patch)
tree119c5e6b8d2b28dec2a3edc877d1ae34e31ab05f
parent37a7b741692997d8cf7ecc371dc5c829a388067d (diff)
Show filename as lightbox title
-rw-r--r--Changelog1
-rwxr-xr-xlib/App/Dthumb.pm4
2 files changed, 3 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index b34d321..a80e9c0 100644
--- a/Changelog
+++ b/Changelog
@@ -2,6 +2,7 @@ git HEAD
* Add progressbar, introduces new dependency Time::Progress
* Switch from lightbox to shadowbox <http://www.shadowbox-js.com/>
+ * Show filename in lightbox
dthumb 0.1 - Sun Feb 27 2011
diff --git a/lib/App/Dthumb.pm b/lib/App/Dthumb.pm
index bb5a4ce..952eaaa 100755
--- a/lib/App/Dthumb.pm
+++ b/lib/App/Dthumb.pm
@@ -293,9 +293,9 @@ sub create_thumbnail_html {
$div_height,
);
$self->{html} .= sprintf(
- "\t<a rel=\"shadowbox[main]\" href=\"%s\">\n"
+ "\t<a rel=\"shadowbox[main]\" href=\"%s\" title=\"%s\">\n"
. "\t\t<img src=\"%s/%s\" alt=\"%s\" /></a>\n",
- $file,
+ ($file) x 2,
$self->{config}->{dir_thumbs},
($file) x 2,
);