fix a bug with formatted info texts in timelines and clips views

This commit is contained in:
rolux 2011-10-28 19:43:07 +00:00
parent 15205875b2
commit 507e856cf4

View file

@ -287,10 +287,15 @@ pandora.ui.list = function() {
info = data['year'];
} else {
format = pandora.getSortKeyData(sortKey).format;
info = format
? Ox['format' + Ox.toTitleCase(format.type)]
.apply(this, Ox.merge([data[sortKey]], format.args || []))
: data[sortKey];
if (format) {
info = (
/^color/.test(format.type.toLowerCase()) ? Ox.Theme : Ox
)['format' + Ox.toTitleCase(format.type)].apply(
this, Ox.merge([data[sortKey]], format.args || [])
);
} else {
info = data[sortKey];
}
}
return {
icon: {