From 2734eb93f2d432d6cd233aa36626c608fc7777f4 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 1 Aug 2013 14:56:37 +0000 Subject: [PATCH] 0xDB info view: make studios depend on canSeeAllMetadata --- static/js/infoView.0xdb.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/static/js/infoView.0xdb.js b/static/js/infoView.0xdb.js index 74ce6bad..18c6cda8 100644 --- a/static/js/infoView.0xdb.js +++ b/static/js/infoView.0xdb.js @@ -422,14 +422,16 @@ pandora.ui.infoView = function(data) { ) .appendTo($text); - data.productionCompany && $('
') - .addClass('OxSelectable') - .css(css) - .html( - formatKey('studio') - + formatValue(data.productionCompany, 'productionCompany') - ) - .appendTo($text); + if (data.productionCompany && canSeeAllMetadata) { + $('
') + .addClass('OxSelectable') + .css(css) + .html( + formatKey('studio') + + formatValue(data.productionCompany, 'productionCompany') + ) + .appendTo($text); + } if (data.genre || (data.keyword && canSeeAllMetadata)) { $div = $('
')