Inspired bu the Flexslider issue https://drupal.org/node/1580902, we need a fix in this module also.
For example after implementing callbacks feature one could fix tabindex order (don't allow to focus hidden slides):
jQuery('.flexslider').bind('start', function(e, slider) {
slider.slides.eq(slider.currentSlide).siblings().find('a').attr('tabindex', '-1');
});
jQuery('.flexslider').bind('after', function(e, slider) {
slider.slides.find('a').attr('z-index', '');
slider.slides.eq(slider.currentSlide).siblings().find('a').attr('tabindex', '-1');
});
... just to give you an idea how to use the callbacks and slider object.
Also I see there's a comment in the code: // @todo register other callbacks
Comments
Comment #1
hkirsman commentedComment #2
hkirsman commentedComment #3
hkirsman commentedComment #4
hkirsman commentedComment #5
zerobyte commentedI've used the patch from #2 but how do we make use of the callback functions, if you let's say, want the slideshow to end by going to the first slide after reaching the last slide?
I've tried:
and
but nothing seems to work.
Comment #6
coloradocolin commentedThis worked for me. @zerobyte just add your code in like this:
Comment #7
drupalbabaji commented#2 patch and #6 code worked for me
Comment #8
nikunjkotechaWorks perfectly fine, thanks for the patch.