Search and Top Navigation
#3028 closed bug (fixed)
Opened June 26, 2008 03:14PM UTC
Closed June 26, 2008 05:57PM UTC
Last modified June 26, 2008 07:06PM UTC
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.