views:

339

answers:

0

Hi,

I've got a Drag Drop opening in a modal dialog window and would like to reset it back to its original load state if the user cancels out of the dialog. I'm using similar concepts to the 'Simple Photo Manager' Droppable example on jqueryui.com. The problem is that when I drag from one area and drop to another, I'm modifying the html, and so when I close the dialog box and re-open (even if I've destroyed), it's still the way it was.

So is there a way just to reset what I've dropped back to the drag list without manually traversing the drop list and re-assigning to drag? I also know that re-initializing the .draggable() and .droppable() may also work, but I thought there might be an easier way.

Thanks.