Open tags26 opened 13 years ago
I think i may have found a solution in the javascript file... I changed the 0 to the total amount of slides variable...
This: vars.currentSlide++; if(vars.currentSlide == vars.totalSlides){ vars.currentSlide = 0; //Trigger the slideshowEnd callback settings.slideshowEnd.call(this);
was changed to: vars.currentSlide++; if(vars.currentSlide == vars.totalSlides){ vars.currentSlide = vars.totalSlides; //Trigger the slideshowEnd callback settings.slideshowEnd.call(this);
This issue will be fixed by using the lastSlide callback in v2.2:
Great! Love the Nivo-Slider but being able to stop it is a must for my application. Thank you for the quick response and looking forward to getting 2.2
I cannot get the slideshow to stop after the last slide. I'm using the function to stop slideshow per the instructions... I've tried it across browsers. I can get the slideshow to stop if I put it in the afterChange callback, but not the slideshowEnd callback.
This is my code:
slideshowEnd: function(){$('#slider').data('nivo:vars').stop = true;}