Browse Source

Tests if volunteer_hours exists.

devel
Jonathan Rosenbaum 8 years ago
parent
commit
40a2a6abab
  1. 2
      js/transaction.js

2
js/transaction.js

@ -711,7 +711,7 @@ $(function() {
if (obj) { if (obj) {
var volunteer_hours = obj.volunteer_hours; var volunteer_hours = obj.volunteer_hours;
if (volunteer_hours.length) { if (volunteer_hours && volunteer_hours.length) {
$("#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