Fix contributor deletion

This commit is contained in:
Benjamin Renard 2014-01-30 23:45:17 +01:00
parent 47542c397f
commit e6082c8441

View file

@ -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);
}