I noticed the first time you drag it around and then cancel the dragging, the js in the dragged item will fire another time, after that, everything seems normal, any idea?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
I found the answer on the jquery ui forum!
update is firing twice because 2 lists are being update (the original, and the list it moves to). so, you can either you the receive: option or in your update you can add: this check:
here's the thread on the jquery forum: http://forum.jquery.com/topic/sortables-update-callback-and-connectwith
Correction, it's actually sortable not draggable.
in the above example you will get two alert(0) popup which is undesired in my application.