From 09cc2893a46acdc24a41bbcb6d297642b0d46be4 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 6 Aug 2017 07:16:55 +0000 Subject: [PATCH] Improves the output feedback. --- js/transaction.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/transaction.js b/js/transaction.js index aa95aab..8d7165b 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -1002,9 +1002,7 @@ $(function() { $("#redeemable_hours").spinner("disable"); } } - } - - + } }); // volunteers post @@ -1022,13 +1020,15 @@ $(function() { if ($("#redeemable_hours").data("ui-spinner")) { $("#redeemable_hours").spinner("disable"); } - amount.val(""); - $("#stand_time_total").empty(); + amount.val(""); + if (!$("#paid_member").text()) { + $("#stand_time_total").text("Free Stand Time is good to " + end.toDateString()); + } } else if ( now.getTime() > end.getTime() ) { console.log("Free Stand Time is now over"); } - } + } // end Free stand time }); }