Skip to content
Permalink
Browse files

demos/sortable/connect-lists-through-tabs: finetuning

  • Loading branch information
bganicky committed Feb 9, 2009
1 parent e1320a7 commit ff3998265dec49e086e80d7cb5819686810443e7
Showing with 5 additions and 4 deletions.
  1. +5 −4 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');
});
}

0 comments on commit ff39982

Please sign in to comment.
You can’t perform that action at this time.