IZ now the bg color of the moved people changes to blue and changes back to white when you move them back, still need to reset to white on submit and make it pretty
This commit is contained in:
parent
b85333e52b
commit
9a5f7b4675
1 changed files with 4 additions and 3 deletions
|
|
@ -19,12 +19,13 @@ $(function() {
|
|||
move[ 'from' ] = ui.draggable[0].getAttribute('from_group_id');
|
||||
if (move['to'] == move['from']){
|
||||
$('#group_list').data( ui.draggable[0].id, []);
|
||||
ui.draggable.css('background-color','white');
|
||||
} else{
|
||||
$('#group_list').data( ui.draggable[0].id, move);
|
||||
ui.draggable.css('background-color','blue');
|
||||
}
|
||||
|
||||
$(this).closest("ul").append(ui.draggable)
|
||||
}
|
||||
$(this).closest("ul").append(ui.draggable);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue