Sortable - cancel - allow just one element to move
Hi dudes,
I have a sortable list, but i only want one element in the list be
moveable by the user. I thought of something like
$('.menu_list').sortable({
axis: 'y',
cancel: 'not(#mymoveableitem)';
});
but this doesn't work, nothing is moveable then.
I also tried
$('.menu_list').sortable({
axis: 'y',
start: function(e, ui) {
if (e.target.innerHTML != 'new entry') {
ui.cancel();
}
});
which doesn't work either and has strange side effects.
Any suggestions?
(another google-groups related question: i posted more or less the
same yesterday but it didn't appear in the list...i thought that posts
from new members get approved by admins or something like that..? As a
whole day passed, i repost...if i get something wrong: sorry)