From addc988921081fcc4571be3cc7cd2375e621fee4 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 19 Jan 2008 10:02:19 +0100 Subject: issue102, use javascript to jump to the correct thumbnail when returing from photo-view Signed-off-by: Andreas Unterkircher --- themes/default/templates/photo_index.tpl | 22 ++++++++++++++-------- themes/default/templates/single_photo.tpl | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'themes') diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl index 717b3f2..dff6ab1 100644 --- a/themes/default/templates/photo_index.tpl +++ b/themes/default/templates/photo_index.tpl @@ -43,17 +43,23 @@
+ {section name="thumb" loop=$thumbs step=1} + {if $images[thumb] } - - {/if} + + + + {/if} + {/section} +

diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl index 2032f52..62a2bf7 100644 --- a/themes/default/templates/single_photo.tpl +++ b/themes/default/templates/single_photo.tpl @@ -80,7 +80,7 @@ previous photo { /if } - + photo index { if $next_url == "" } -- cgit v1.2.3-18-g5258