Side navigation
Ticket #4708: draggable_issue.txt
File draggable_issue.txt, 0.4 KB (added by funkingburt, May 31, 2009 08:15PM UTC)
quick demo of problem
$(document).ready(function() {
$('.asset').draggable({
helper: 'clone'
// connectToSortable:'#entries'
});
$('#entries').sortable({
stop:updateIDs
});
$('#entries').droppable({
accept : '.asset',
drop: function(event, ui)
{
var dropped = ui.draggable;
var assetID = dropped.data('id');
alert("dropped asset id is " + ui.draggable.data('id')); // undefined if connectToSortable defined
}
});
});
Download in other formats:
Original Format
File draggable_issue.txt, 0.4 KB (added by funkingburt, May 31, 2009 08:15PM UTC)
quick demo of problem
$(document).ready(function() {
$('.asset').draggable({
helper: 'clone'
// connectToSortable:'#entries'
});
$('#entries').sortable({
stop:updateIDs
});
$('#entries').droppable({
accept : '.asset',
drop: function(event, ui)
{
var dropped = ui.draggable;
var assetID = dropped.data('id');
alert("dropped asset id is " + ui.draggable.data('id')); // undefined if connectToSortable defined
}
});
});