Skip to content

Commit

Permalink
dynamic update contrib amount
Browse files Browse the repository at this point in the history
  • Loading branch information
tamw-wnet committed Dec 18, 2024
1 parent 03d3c31 commit 984b80c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/everyaction_pledge_shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@
console.log(current_frequency);
if (current_frequency == 4) {
$("input[name='OtherAmount']").val(required_installment_amount);
$("span.required_contribution").html(required_installment_amount + " per month for 12 months");
} else {
$("input[name='OtherAmount']").val(required_donation_amount);
$("span.required_contribution").html(required_donation_amount);
}
$("input[name='OtherAmount']").focus();
}
Expand Down

0 comments on commit 984b80c

Please sign in to comment.