Browse Source

Improves the presentation logic.

devel
Jonathan Rosenbaum 8 years ago
parent
commit
9d07e9a740
  1. 5
      js/transaction.js

5
js/transaction.js

@ -704,14 +704,13 @@ $(function() {
obj.phone + "\r\n" + obj.phone + "\r\n" +
"volunteer hours for last 365 day: " + obj.volunteer_hours + "\r\n" + "volunteer hours for last 365 day: " + obj.volunteer_hours + "\r\n" +
"volunteer hours redeemed " + "\r\n" + "volunteer hours redeemed " + "\r\n" +
"volunteer hours remaining"; "volunteer hours remaining";
$("#volunteer_hours").prop("title","").empty(); $("#volunteer_hours").prop("title","").empty();
if (obj) { if (obj) {
var volunteer_hours = obj.volunteer_hours; var volunteer_hours = obj.volunteer_hours;
if (volunteer_hours.length) { if (volunteer_hours.length) {
$("#volunteer_hours").prop("title","").empty();
$("#volunteer_hours").prop("title",title).html("Volunteer Hours"); $("#volunteer_hours").prop("title",title).html("Volunteer Hours");
} else { } else {
$("#volunteer_hours").prop("title","").empty(); $("#volunteer_hours").prop("title","").empty();

Loading…
Cancel
Save