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:
parent
9a5f7b4675
commit
82ff7dc4e4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue