My sortable list is a bunch of links. The links should not fire when the user is sorting the list or after they let go of the mouse to stop sorting. With the following code, the links are being executed when the user lets go of the mouse. Is there a way to prevent this?
$("#applications").sortable({
start: function () {
$(".app_link").unbind("click")
},
stop: function () {
$(".app_link").bind("click", function () {...stuff to do...})
}
});
While the elements are being move they have the .ui-sortable-helper class added to them. It can be used to exempt them from the binding.