mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-21 02:21:36 -04:00
Tests if volunteer_hours exists.
This commit is contained in:
+1
-1
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user