diff --git a/src/scripts/build.js b/src/scripts/build.js index dbe8e58..51afa9e 100644 --- a/src/scripts/build.js +++ b/src/scripts/build.js @@ -334,6 +334,7 @@ build.infoboxPhoto = function(data, forView) { infos.forEach(function(info, i, items) { + // Set default for empty values if (info[1]===''||info[1]===null||info[1]===undefined) info[1] = '-'; switch (info[0]) { @@ -457,6 +458,9 @@ build.infoboxAlbum = function(data, forView) { infos.forEach(function(info, i, items) { + // Set default for empty values + if (info[1]===''||info[1]===null||info[1]===undefined) info[1] = '-'; + if (info[0]==='') { // Divider