I want to move an element by dropping the list item on the appropriate tab. I use a solution of Simon Battersby, to add a stylized scroll bar on the list: Vertical Scrollbar Plugin using jQueryUI Slider. I used the following solution to the list item is visible when you drag across the screen: jQuery Draggable and overflow issue.
My sample is http://jsfiddle.net/XmahV/
The following code works when helper="original" in the sortable options:
drop: function( event, ui ) {
var $tabItem = $( this );
var $list = $( $tabItem.find( "a" ).attr( "href" ) ).find( ".sortable" );
**ui.draggable.hide( "slow", function() {
$(this).appendTo($list).show();//it does not work in my case
});**
}
But in my case helper="clone":
$( ".sortable" ).sortable({
connectWith: ".sortable",
//Need to drag across the entire window. Overflow issue.
appendTo: "body",
containment: "window",
scroll: false,
helper: "clone"
//End Overflow issue.
});
Can someone help me move a list item, when lowering the tab title? Or can someone tell me how in my case remove the item from the list, when you transfer the item to the header of the tab?
Thanks