From f95febd85158f9ed1e8ac6a76414f7f5113e8ec3 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Fri, 11 Aug 2017 07:38:39 +0000 Subject: [PATCH] Realized that having readonly on membership may prevent a patron from renewing slightly earlier, so reverted. * Could allow renewal perhaps 2 months before, and turn off readonly, as a feature. --- js/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/transaction.js b/js/transaction.js index bee43ea..deec56c 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -869,14 +869,14 @@ $(function() { //make an exception for an actual member for a Membership transaction if ($("#transaction_type").val() === "Memberships") { - amount.removeAttr("readonly"); + //amount.removeAttr("readonly"); } if (membership_obj.expiration_date) { var exp = membership_obj.expiration_date; expiration_date = new Date(exp.split("-").toString()); if (d < expiration_date && $("#transaction_type").val() === "Memberships") { membership_transaction = true; - amount.attr("readonly", "readonly"); + //amount.attr("readonly", "readonly"); } }