Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. $('#widgets-available, #sidebar-drop, #content-drop, #footer-drop').sortable({
  2. start: function(event, ui) {
  3. item = ui.item;
  4. newList = oldList = ui.item.parent().parent();
  5. },
  6. over: function(event, ui) {
  7. //Get Current droppable??
  8. }
  9. }).disableSelection();
  10.  
  11. over: function(event, ui) {
  12. $(this).find('.numdrag').size(); // give the count of elements with class .numdrag in the drop area
  13. }
  14.  
  15. over: function(event) {
  16. var myDroppable = event.target; //this is element where it's being dropped
  17. var mySortable = event.toElement; //this is the "handle" element that fired the sort event in the first place.
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement