the person bg color now reset to white, need to reset the original group param and reset the moves var so that one can submit again

This commit is contained in:
ilya 2010-08-29 20:38:59 -07:00
parent 9a5f7b4675
commit 82ff7dc4e4

View file

@ -3,6 +3,7 @@ $('#move_friends_link').live( 'click',
$.post('/groups/move_friends',
{'moves' : $('#group_list').data()},
function(){ $('#group_title').html("Groups edited successfully!");});
$(".person").css('background-color','white');
});
$(function() {
@ -22,7 +23,7 @@ $(function() {
ui.draggable.css('background-color','white');
} else{
$('#group_list').data( ui.draggable[0].id, move);
ui.draggable.css('background-color','blue');
ui.draggable.css('background-color','orange');
}
$(this).closest("ul").append(ui.draggable);
}