From 9d07e9a74055fd89316390f95dd9ac051c0eff8e Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Mon, 17 Jul 2017 20:50:12 +0000 Subject: [PATCH] Improves the presentation logic. --- js/transaction.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/transaction.js b/js/transaction.js index dc5f278..4f1708f 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -704,14 +704,13 @@ $(function() { obj.phone + "\r\n" + "volunteer hours for last 365 day: " + obj.volunteer_hours + "\r\n" + "volunteer hours redeemed " + "\r\n" + - "volunteer hours remaining"; - + "volunteer hours remaining"; + $("#volunteer_hours").prop("title","").empty(); if (obj) { var volunteer_hours = obj.volunteer_hours; if (volunteer_hours.length) { - $("#volunteer_hours").prop("title","").empty(); $("#volunteer_hours").prop("title",title).html("Volunteer Hours"); } else { $("#volunteer_hours").prop("title","").empty();