Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3028 closed bug (fixed)

update callback is not called everytime

Reported by: jontsa Owned by: paul
Priority: major Milestone: 1.5.1
Component: ui.sortable Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

Description

I'm using nested ul/li lists with sortable and when I drag the first li-element from one ul-list to the top of another ul-list, the update callback is not called.

Example:

<ul id="mylist">
	<li>foo</li>
	<li>bar</li>
	<li>
		zyx
		<ul>
			<li>zyx-1</li>
			<li>zyx-2</li>
		</ul>
	</li>
</ul>
<script type="text/javascript">
$('#mylist').sortable({items: 'li', update: function(e,ui) {
	alert('update');
}});
</script>

Update is not called if I drag the first li-element from the top level ul-list to be the first element of the second ul-list.

I also tried using the connectWith option. There the update callback is not called if you drag the first li-element to be the first element of another ul-list under the parent ul in dom-tree. Also update is called twice when dragging any li-element to ul-list above the parent ul.

Tested with 1.5 and with 26.6. version from subversion.

Change History (3)

comment:1 Changed 15 years ago by paul

Resolution: fixed
Status: newclosed

comment:2 Changed 15 years ago by paul

Fixed in r355.

comment:3 Changed 15 years ago by paul

Milestone: 1.5.1
Note: See TracTickets for help on using tickets.