germanysbestkeptsecret / Wookmark-jQuery

A jQuery plugin to create a dynamic, multi-column layout.
MIT License
2.63k stars 759 forks source link

wookmark sorting and lightbox issue #165

Closed ravivco closed 10 years ago

ravivco commented 10 years ago

Hi, i have implemented the wookmark-colorbox plugin and it works great, i have adde the sorting method to the code and it works realy nice. the problem i have is after sorting the layout tiles the colorbox still loads the original layout, meaning the colorbox slider goes through the items as they were sorted on load and does not regard the new tiles order. is there a way to fix this? i have gone through a lot of code in order to find a solution but no luck. thank you

Sebobo commented 10 years ago

Hi,

colorbox isn't perfect for this kind of gallery i think i will change this soon to magnific popup which allows that more easily. This would make sense because more people will combine these features like you did i guess.

See http://dimsemenov.com/plugins/magnific-popup/documentation.html

There is a part about 'Multiple galleries' in which they have a delegate. In this you can use a subselector which allows you only to cycle through elements which have a specific class. The filter will add the 'inactive' class so you can set the delegate to elements without it.

Hope this helps!

ravivco commented 10 years ago

Hi, thanks for the answer. I have looked into the Magnific Popup and i think it will do the trick. thanks again