0xDB: add color, sound and studio item keys (fixes #1609)

This commit is contained in:
rolux 2013-07-08 13:27:38 +00:00
commit c24920d968
2 changed files with 40 additions and 4 deletions

View file

@ -301,7 +301,7 @@ pandora.ui.infoView = function(data) {
.appendTo($text);
}
// Country, Year, Language, Runtime ----------------------------------------
// Country, Year, Language, Runtime, Color, Sound --------------------------
if (isEditable) {
var $div = $('<div>')
@ -332,9 +332,9 @@ pandora.ui.infoView = function(data) {
})
.appendTo($div);
});
} else if (data.country || data.year || data.language || data.runtime) {
} else if (data.country || data.year || data.language || data.runtime || data.color || data.sound) {
var html = [];
['country', 'year', 'language', 'runtime'].forEach(function(key) {
['country', 'year', 'language', 'runtime', 'color', 'sound'].forEach(function(key) {
if (data[key]) {
html.push(
formatKey(key) + (
@ -425,6 +425,14 @@ pandora.ui.infoView = function(data) {
)
.appendTo($text);
data.productionCompany.length && $('<div>')
.css(css)
.html(
formatKey('studio')
+ formatValue(data.productionCompany, 'productionCompany')
)
.appendTo($text);
if (data.genre || (data.keyword && canSeeAllMetadata)) {
$div = $('<div>')
.css(css)