Default values for album infobox

This commit is contained in:
Tobias Reich 2015-02-07 00:06:46 +01:00
parent d0616d678b
commit 580228521d

View File

@ -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