To get rid of "addSourse" I adapted the "addItemsFromMarkup" function from the galleryImage library to dynamically add the items and set the drag class to them. To allow items in both drop areas I call my new function for each area.
What I'm trying to do now is dynically add new items and let them be d'n'd like the existing items. This is where I need some help. I hope people find my changes useful and someone here can help with the last bit to make the library even more useful for everyone.
There's a working example here:
Click the 'Add Cat' link at the bottom to add a new cat. This adds nicely, everything still works but the new cat isn't draggable. Obviously it needs to be added to the array and something initialised. I'm going through the code but I just can't work out what I need to add...[/url]