Skip to content

Commit

Permalink
Change to image display
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 13, 2011
1 parent 7aa1c57 commit 5c2ac97
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -328,7 +328,7 @@ def gallery_feature(data)
url = img.domain_file.url
size = img.domain_file.image_size
<<-IMAGE
href='#{url}' target='_blank' onclick='CmsGallery.overlayDisplay(#{data[:gallery].id},#{tag.locals.index + data[:offset]}); return false;'
href='#{url}' target='_blank' onclick='CmsGallery.overlayDisplay(#{data[:gallery].id},#{tag.locals.index + (data[:pages][:page] - 1) * data[:pages][:per_page]}); return false;'
IMAGE
else
''
Expand Down

0 comments on commit 5c2ac97

Please sign in to comment.