I'm using Media Box Advanced as a layover tool, which is very powerful and convenient because it accepts any media, and takes any list and automatically reads the number of <li>
and their order.
I have introduced a draggable functionality to these lists, reordering them using jquery .draggable. They can also be dragged from one UL to another. However, when I then click on these to pop up the lightbox, the order has not changed. My question is the following:
1) How do I get the page to read these changes in real time and reorder the lightbox?
2) Is there a way to make these changes permanent?
3) The lightbox categorizes galleries by the <a>
tags within the <li>
(<a rel="lightbox[category]")
. Is there a way to change the setting of the <li>
when they are dragged from one <ul>
to another? Like if they are dragged from UL1 to UL2, how do I update the <a rel>
tag to reflect that?
Here is the web page: http://www.senseculture.com/timeline_new.html
Here is the draggable code I'm using:
<script>
$(function() {
$( "#sortable1, #sortable2" ).sortable({
connectWith: ".timeline_content"
}).disableSelection();
});
</script>
Thanks!