Default values for album infobox
This commit is contained in:
parent
d0616d678b
commit
580228521d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user