diff --git a/inc/myco.js b/inc/myco.js index a86d0b8..32ef7e8 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -308,8 +308,9 @@ on_edit_contributor_btn_click=function(e) { } on_click_del_contributor_btn=function() { - contributor=$('#view-group #contributor')[0].value; - question='Voulez-vous vraiment supprimer '+contributor+' ?'; + var group=groups[$('#view-group').data('uuid')]; + contributor=group.contributorByEmail($('#view-group #contributor')[0].value); + question='Voulez-vous vraiment supprimer '+contributor.name+' ?'; myconfirm(question,on_confirm_del_contributor,null,contributor); }