Fix show contributions after adding with a different contributor

This commit is contained in:
Benjamin Renard 2014-10-13 00:25:38 +02:00
parent e4d2a711a0
commit f04e6fd466

View file

@ -610,7 +610,7 @@ on_valid_add_contribution_modal=function(e) {
contribution_uuid=$('#add_contribution_modal #edit_uuid')[0].value; contribution_uuid=$('#add_contribution_modal #edit_uuid')[0].value;
group.updateContribution(contribution_uuid,new Contribution(contributor,cost,title,date,cat)); group.updateContribution(contribution_uuid,new Contribution(contributor,cost,title,date,cat));
} }
show_contributions(group,contributor_email); show_contributions(group,$('#view-group #contributor')[0].value);
$('#add_contribution_modal').modal('hide'); $('#add_contribution_modal').modal('hide');
$('#add_contribution_modal form')[0].reset(); $('#add_contribution_modal form')[0].reset();
groups.save(); groups.save();