Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Order of thumbnails in tray when random option is set to 1 #64

TINITUS opened this Issue · 6 comments

4 participants


Order of thumbnails in thumbs tray do not match when random option is used.


Same issue here… anyone found a way to do this?


I found a way, sort of…

var slidesArray = [
    { image: "slide_1.jpg", thumb: "thumb_1.jpg"},
    { image: "slide_2.jpg", thumb: "thumb_2.jpg"},
    { image: "slide_3.jpg", thumb: "thumb_3.jpg"}


    random: 0,
    thumb_links: 1,
    slides: slidesArray.sort(function() {return 0.5 - Math.random()})

Any ideas on how to make it better?


Same problem.

I've tried your solution but with it I don't have any image.
I'll have a look on it tomorrow.


Ok, it works perfectly with the Edmundojr's method. Yesterday I've done something wrong.



@notph I'm glad to help :)


@edmundojr thanks for this solution! works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.