Guest User

Untitled

a guest
Jun 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // add a draggable observer to the page which will fun everytime an element is dragged.
  2. Draggables.addObserver({
  3. onStart: function(eventName, draggable, event) {
  4. this.dragElement = draggable.element; // cache the element currently being dragged
  5. }
  6. // sortable onupdate
  7. onUpdate: function(container){
  8. if (this.dragElement.ancestors().indexOf(container) != -1) {
  9. // onUpdate firing for the sortable that the element was dropped in
  10. }
  11. }
Add Comment
Please, Sign In to add comment