From e6082c84419de07623e9796826175015d099a49e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 30 Jan 2014 23:45:17 +0100 Subject: [PATCH] Fix contributor deletion --- inc/myco.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }