Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#widgets-available, #sidebar-drop, #content-drop, #footer-drop').sortable({
- start: function(event, ui) {
- item = ui.item;
- newList = oldList = ui.item.parent().parent();
- },
- over: function(event, ui) {
- //Get Current droppable??
- }
- }).disableSelection();
- over: function(event, ui) {
- $(this).find('.numdrag').size(); // give the count of elements with class .numdrag in the drop area
- }
- over: function(event) {
- var myDroppable = event.target; //this is element where it's being dropped
- var mySortable = event.toElement; //this is the "handle" element that fired the sort event in the first place.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement