Sortable: Drag to another box, but NOT sort within self?
Ang grupo na iyong pinagpapaskilan ay isang
grupo ng Usenet . Ang mga mensaheng naipaskil sa grupong ito ay gagawing nakikita ang iyong email address sa sinuman sa Internet.
Ang iyong sagot ay hindi pa naipapadala.
Ang iyong paskil ay matagumpay
Mula:
AJ <fireboxstud... @gmail.com>
Petsa: Mon, 11 Aug 2008 07:38:00 -0700 (PDT)
Paksa: Sortable: Drag to another box, but NOT sort within self?
Hey guys, got a Sortable dilemma. I have two containers that I have
made sortable. I want the bottom box to be able to drag contents into
the top one, but I ONLY want the top one to allow sorting the order.
I've illustrated what I need to do with this screenshot:
http://screencast.com/t/2UpserTwl6q
The code I have thus far is:
$("#topFriends").sortable();
$("#newestFriends").sortable({
connectWith: ["#topFriends",]
});
Any ideas how this could be accomplished?
Thanks much,
AJ
Kailangan mong mag-
sign in bago ka makakapag-post ng mga mensahe.
Ikaw ay walang pahintulot na kinakailangan para makapagpaskil.
Mula:
AJ <fireboxstud... @gmail.com>
Petsa: Mon, 11 Aug 2008 10:46:41 -0700 (PDT)
Lokal: Mar 12 Agos 2008 01:46
Paksa: Re: Sortable: Drag to another box, but NOT sort within self?
Okay, I *may* have found a solution from some of the other threads
I've seen. So far, this seems to work:
$("#topFriends").sortable();
$('#topFriends').droppable({
accept: '#newestFriends',
drop: function(ev, ui) {
$(this).sortable("refresh");
return false;
}
});
$("#newestFriends li").draggable({
helper:'clone',
connectToSortable:'#topFriends',
});
Although I should point out that the UI docs make no mention of
'connectToSortable'. I only saw it when going through this list.
Kailangan mong mag-
sign in bago ka makakapag-post ng mga mensahe.
Ikaw ay walang pahintulot na kinakailangan para makapagpaskil.