1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

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

This commit is contained in:
Jonathan Rosenbaum 2017-08-11 06:24:31 +00:00
parent f889eccc71
commit 79e8baf0b7

View File

@ -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 () {