mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 17:03:22 -05:00
Tests if volunteer_hours exists.
This commit is contained in:
parent
1805449b50
commit
40a2a6abab
@ -711,7 +711,7 @@ $(function() {
|
||||
|
||||
if (obj) {
|
||||
var volunteer_hours = obj.volunteer_hours;
|
||||
if (volunteer_hours.length) {
|
||||
if (volunteer_hours && volunteer_hours.length) {
|
||||
$("#volunteer_hours").prop("title",title).html("Volunteer Hours");
|
||||
} else {
|
||||
$("#volunteer_hours").prop("title","").empty();
|
||||
|
Loading…
x
Reference in New Issue
Block a user