Search and Top Navigation
#4617 closed bug (notabug)
Opened June 19, 2009 08:12PM UTC
Closed July 09, 2009 02:24PM UTC
Last modified October 11, 2012 09:15PM UTC
Ui.Sortable Connected Lists links get "activated" on release
Reported by: | jayson | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.sortable | Version: | 1.7.2 |
Keywords: | connect lists, sortable, link, on release | Cc: | |
Blocked by: | Blocking: |
Description
I have a bunch of lists that I want to be able to "connect" or sort items among them.
for example. (edited from http://jqueryui.com/demos/sortable/#connect-lists)
<ul id="sortable1" class="connectedSortable">
<li class="ui-state-default"><a href="#">Item 1</a></li>
<li class="ui-state-default"><a href="#">Item 2</a></li>
<li class="ui-state-default"><a href="#">Item 3</a></li>
<li class="ui-state-default"><a href="#">Item 4</a></li>
<li class="ui-state-default"><a href="#">Item 5</a></li>
</ul>
<ul id="sortable2" class="connectedSortable">
<li class="ui-state-default"><a href="#">Item 1</a></li>
<li class="ui-state-default"><a href="#">Item 2</a></li>
<li class="ui-state-default"><a href="#">Item 3</a></li>
<li class="ui-state-default"><a href="#">Item 4</a></li>
<li class="ui-state-default"><a href="#">Item 5</a></li>
</ul>
When sorting within each "ul" or category, there's no problem.
but when I try to sort or move item 1 to list #2 (sortable2), the link gets "clicked".
Use the connect with option. If you have trouble with that, please post to the jquery-ui mailing list for help: http://groups.google.com/group/jquery-ui