jquery sortable triggers clicks on links in firefox 3.0
I'm using jquery 1.2.6, and jquery-ui 1.6rc2. I have a table as
follows:
<table class="newtable" id="contentTable">
<tbody id="contentList" class="ui-sortable">
<tr>
<td >
<a href="editContent.html?id=109&fass=12">
U.S. Military: Afghan Police Officer Kil...
</a>
</td>
</tr><tr>
<td >
<a href="editContent.html?id=101&fass=12">
Category 3 Hurricane Omar Slams Northern...
</a>
</td>
</tr>
</table>
This is defined in my script section:
$(document).ready(function(){
$("#contentList").sortable({
axis: 'y',
placeholder: 'blah'
});
enableTooltips("contentTable");
});
The problem I'm having is that when I'm in firefox, and I happen to
grab the link to start dragging, when I let go, firefox fires the
click on the link, navigating the user away from the page. I can't
figure out how to prevent that from happening. I've tried messing with
the stop function, but neither event.preventDefault(); nor
event.stopPropagation() seem to prevent the link from being clicked.
Any help is appreciated.
Jay