javascript - JQuery Sortable Drag and Drop issue -
i've implemented jquery drag , drop functionality , i've found slight bug. can drag element smallest amount , it'll still assigned when decide drop because don't want drag element anymore.
how check element above table want drop selected element into?
how drag , drop works @ moment (only have drag slightly)
how should work (don't want able drag)
sortable code:
$(document).ready(function () { $("#assign tbody").sortable( { connectwith: "#assign tbody", scroll: false, cursor: 'move', stop: function (event, info) { alert("done assign"); } }).disableselection(); $("#remove tbody").sortable( { connectwith: "#remove tbody", scroll: false, cursor: 'move', stop: function (event, info) { alert("done remove"); } }).disableselection(); });
js fiddle example: http://jsfiddle.net/lhk941tc/
Comments
Post a Comment