Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // add a draggable observer to the page which will fun everytime an element is dragged.
- Draggables.addObserver({
- onStart: function(eventName, draggable, event) {
- this.dragElement = draggable.element; // cache the element currently being dragged
- }
- // sortable onupdate
- onUpdate: function(container){
- if (this.dragElement.ancestors().indexOf(container) != -1) {
- // onUpdate firing for the sortable that the element was dropped in
- }
- }
Add Comment
Please, Sign In to add comment