Mensahe mula sa diskusyon
Sortable: Drag to another box, but NOT sort within self?
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Received: by 10.214.183.3 with SMTP id g3mr192160qaf.1.1218476801298; Mon, 11
Aug 2008 10:46:41 -0700 (PDT)
Date: Mon, 11 Aug 2008 10:46:41 -0700 (PDT)
In-Reply-To: <5f7cc34f-1bf0-4654-a67f-66c834f1022a@k30g2000hse.googlegroups.com>
X-IP: 66.187.177.210
References: <5f7cc34f-1bf0-4654-a67f-66c834f1022a@k30g2000hse.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US;
rv:1.8.1.16) Gecko/20080714 Firefox/2.0.0.16 Flock/1.2.4,gzip(gfe),gzip(gfe)
Message-ID: <6d673ded-f00a-4bb3-b79b-9d204b136cf0@j22g2000hsf.googlegroups.com>
Subject: Re: Sortable: Drag to another box, but NOT sort within self?
From: AJ <fireboxstud...@gmail.com>
To: jQuery UI <jquery-ui@googlegroups.com>
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.