dont fail on infoView id array data is string

This commit is contained in:
j 2015-10-20 18:21:18 +01:00
parent b14f729768
commit 086fce31ea
3 changed files with 18 additions and 0 deletions

View File

@ -231,6 +231,12 @@ pandora.ui.infoView = function(data) {
});
});
listKeys.forEach(function(key) {
if (Ox.isString(data[key])) {
data[key] = [data[key]];
}
});
// Title -------------------------------------------------------------------
$('<div>')

View File

@ -188,6 +188,12 @@ pandora.ui.infoView = function(data) {
});
});
listKeys.forEach(function(key) {
if (Ox.isString(data[key])) {
data[key] = [data[key]];
}
});
if (!canEdit) {
pandora.createLinks($info);
}

View File

@ -210,6 +210,12 @@ pandora.ui.infoView = function(data) {
});
});
listKeys.forEach(function(key) {
if (Ox.isString(data[key])) {
data[key] = [data[key]];
}
});
if (!canEdit) {
pandora.createLinks($info);
}