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 ------------------------------------------------------------------- // Title -------------------------------------------------------------------
$('<div>') $('<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) { if (!canEdit) {
pandora.createLinks($info); 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) { if (!canEdit) {
pandora.createLinks($info); pandora.createLinks($info);
} }