Benjamin Renard commited on 2014-01-30 22:45:17
Showing 1 changed files, with 3 additions and 2 deletions.
... | ... |
@@ -308,8 +308,9 @@ on_edit_contributor_btn_click=function(e) { |
308 | 308 |
} |
309 | 309 |
|
310 | 310 |
on_click_del_contributor_btn=function() { |
311 |
- contributor=$('#view-group #contributor')[0].value; |
|
312 |
- question='Voulez-vous vraiment supprimer '+contributor+' ?'; |
|
311 |
+ var group=groups[$('#view-group').data('uuid')]; |
|
312 |
+ contributor=group.contributorByEmail($('#view-group #contributor')[0].value); |
|
313 |
+ question='Voulez-vous vraiment supprimer '+contributor.name+' ?'; |
|
313 | 314 |
myconfirm(question,on_confirm_del_contributor,null,contributor); |
314 | 315 |
} |
315 | 316 |
|
316 | 317 |