the group edit resets the data started to reset the from id attr
This commit is contained in:
parent
82ff7dc4e4
commit
98db03d36e
2 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
- unless @group == :all
|
||||
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane", :id => 'add_request_button'
|
||||
= link_to "Edit", (edit_group_path(@group)), :class => "buttion"
|
||||
|
||||
.yo{:style => 'display:none'}
|
||||
#add_request_pane
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ $('#move_friends_link').live( 'click',
|
|||
{'moves' : $('#group_list').data()},
|
||||
function(){ $('#group_title').html("Groups edited successfully!");});
|
||||
$(".person").css('background-color','white');
|
||||
$('#group_list').removeData();
|
||||
$(".person").setAttribute('from_group_id', function(){$(this).closest(".group ul").attr('id')})
|
||||
});
|
||||
|
||||
$(function() {
|
||||
|
|
@ -13,7 +15,6 @@ $(function() {
|
|||
$(".group ul").droppable({
|
||||
|
||||
drop: function(event, ui) {
|
||||
//$("<li class='person ui-draggable'></li>").text(ui.draggable.text()).appendTo(this).draggable();
|
||||
var move = {};
|
||||
move[ 'friend_id' ] = ui.draggable[0].id
|
||||
move[ 'to' ] = $(this)[0].id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue