sortable firing click event in rc6

sortable firing click event in rc6


Hi
Im trying to use the ui sortable to make a sortable list, however in
my list I have links and when I try to sort the list the click event
gets fired as I let go of the mouse button. Don't know if this is a
bug or just what Im doing. This is the code I use to make it sortable
(where this is a <ul> list)
this.sortable({
revert: true
});
and this is what I use to assign the click function to the links in
the list.. (in the same function as the sortable call)
this.find('a').click(function(){
var text = $(this).text();
var id = $(this).parent().attr('id').substr(opts.idprefix.length);
return opts.itemClick($(this).parent(),id,text);
});
If anyone could help me with this it would be greatly appreciated.
Cheers