Closed (fixed)
Project:
Gallery formatter
Version:
6.x-1.0-rc4
Component:
Javascript
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2011 at 23:19 UTC
Updated:
17 Jan 2012 at 19:58 UTC
This issue is the Drupal 6 counterpart to http://drupal.org/node/1123562, in which you give some Javascript snippets that advance to the next (and I assume previous) image. Could you tell me what the syntax would be in Drupal 6? It's a bit of a dealbreaker for me and I really want to use this wonderful module.
Thanks!
Comments
Comment #1
manuel garcia commentedIn d6 the module doesn’t have prev & next buttons so you'd have to use a jquery selector logic to get to the next thumbnail to click:
$(".gallery-thumbs li.active").next().find('a').trigger('click'); // Next image$(".gallery-thumbs li.active").prev().find('a').trigger('click'); // Previous imageThe above code should work, only it won't start at the beginning if it's the last one...
Comment #2
mikhail commentedbeutifull module! Where should i insert this code above to make the function of next/previous image possible?