1.5 sortable handle problem
After getting the latest jquery.ui 1.5 from 1.5b, I have the following
problem with click on Edit. I think I'm missing something with event.
I have a list of modules which are sortable
$(col).sortable({
items: '.NKDraggable',
handle: 'h2',
placeholder: 'hoverState',
update: function(e, ui) {
...
},
The element handle refers to is inside module
<div class="NKModule NKDraggable" id="mod1">
<div class="NKHeader">
<h2>
<a class="NKDisplayName">Register</a>
<a class="NKEditable" runat="server" id="A3">Edit</a>
<a class="NKDestroy" runat="server" id="A5">Trash</a>
</h2>
</div>
and finally Edit has a click event bind to it
$('div.NKModule').each(function(b, c) {
var x = $(this).find('div.NKHeader');
alert("x " + x);
// collapsing edit
x.find('.NKEditable').bind("click", function(e) {
var moduleDiv = $(this).parents('div.NKModule');
moduleDiv.find('.Module_Edit').slideToggle();
e.stopPropagation();
})
The click event use to work before but now it doesn't. If I change
handle from h2 it works again. I tried to use stopPropagation but that
doesn't work.
Does anyone knows whats happening here?