From 82ff7dc4e4320de329581d4f527f8ee2bed6e2c4 Mon Sep 17 00:00:00 2001 From: ilya Date: Sun, 29 Aug 2010 20:38:59 -0700 Subject: [PATCH] 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 --- public/javascripts/group-edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/javascripts/group-edit.js b/public/javascripts/group-edit.js index c8c3f7e89..9cc0c0f30 100644 --- a/public/javascripts/group-edit.js +++ b/public/javascripts/group-edit.js @@ -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); }