Browse Source

Fixes a bug where paid member was not showing for someone with a valid membership.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
79e8baf0b7
  1. 11
      js/transaction.js

11
js/transaction.js

@ -866,6 +866,16 @@ $(function() {
$("#membership_discount").empty();
$("#membership_discount_price").empty();
amount.val("");
//make an exception for an actual member
if (membership_obj.expiration_date) {
var exp = membership_obj.expiration_date;
expiration_date = new Date(exp.split("-").toString());
if (d < expiration_date) {
membership_transaction = true;
}
}
if (membership_transaction === true) { // if membership transaction
if (typeof membership_obj.expiration_date && membership_obj.expiration_date !== undefined) {
@ -885,7 +895,6 @@ $(function() {
// paid membership
} else if (d < expiration_date) {
if ($("#paid_member").length === 1) {
$("#paid_member").prop("title",title).html("Paid Member");
amount.on("input", function () {

Loading…
Cancel
Save