diff options
author | Bohdan Ganicky <bohdan.ganicky@gmail.com> | 2009-02-09 11:13:42 +0000 |
---|---|---|
committer | Bohdan Ganicky <bohdan.ganicky@gmail.com> | 2009-02-09 11:13:42 +0000 |
commit | ff3998265dec49e086e80d7cb5819686810443e7 (patch) | |
tree | 59e49d14093cec0d1a3f5bd47974bfb2ff031c1a /demos/sortable | |
parent | e1320a794c691c64ef1ee0ba6709b92a9d7f6da5 (diff) | |
download | jquery-ui-ff3998265dec49e086e80d7cb5819686810443e7.tar.gz jquery-ui-ff3998265dec49e086e80d7cb5819686810443e7.zip |
demos/sortable/connect-lists-through-tabs: finetuning
Diffstat (limited to 'demos/sortable')
-rw-r--r-- | demos/sortable/connect-lists-through-tabs.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/demos/sortable/connect-lists-through-tabs.html b/demos/sortable/connect-lists-through-tabs.html index 1744c0eb9..a768ef7f8 100644 --- a/demos/sortable/connect-lists-through-tabs.html +++ b/demos/sortable/connect-lists-through-tabs.html @@ -18,14 +18,15 @@ var $tabs = $("#tabs").tabs(); - var $tab_links = $("a",$tabs).droppable({ + var $tab_items = $("li",$tabs).droppable({ accept: ".connectedSortable li", + hoverClass: "ui-state-hover", drop: function(ev, ui) { - var $link = $(this); - var $list = $($link.attr('href')).find('.connectedSortable'); + var $item = $(this); + var $list = $($item.find('a').attr('href')).find('.connectedSortable'); ui.draggable.hide('slow', function() { - $tabs.tabs('select', $tab_links.index($link)); + $tabs.tabs('select', $tab_items.index($item)); $(this).appendTo($list).show('slow'); }); } |