Bug Tracker

Ticket #4708: draggable_issue.txt

File draggable_issue.txt, 442 bytes (added by funkingburt, 11 years ago)

quick demo of problem

Line 
1
2
3$(document).ready(function() {
4 $('.asset').draggable({
5    helper: 'clone'
6    // connectToSortable:'#entries'
7  });
8 $('#entries').sortable({
9   stop:updateIDs
10 });
11 $('#entries').droppable({
12   accept : '.asset',
13   drop: function(event, ui)
14   {
15     var dropped = ui.draggable;
16     var assetID = dropped.data('id');
17     alert("dropped asset id is " + ui.draggable.data('id'));  // undefined if connectToSortable defined
18   }
19 });
20});