Skip to content
Extraits de code Groupes Projets
Valider 98db03d3 rédigé par ilya's avatar ilya
Parcourir les fichiers

the group edit resets the data started to reset the from id attr

parent 82ff7dc4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter