From e57a20bd2ea78fd0688ead6a38904276f35dcefd Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 26 Feb 2013 13:21:56 +0530 Subject: [PATCH] indiancinema info view: copyright -> isCopyrighted --- static/js/pandora/infoView.indiancinema.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/infoView.indiancinema.js b/static/js/pandora/infoView.indiancinema.js index 02165384..83c1f84e 100644 --- a/static/js/pandora/infoView.indiancinema.js +++ b/static/js/pandora/infoView.indiancinema.js @@ -2,9 +2,6 @@ pandora.ui.infoView = function(data) { - // fixme: given that currently, the info view doesn't scroll into view nicely - // when collapsing the movies browser, the info view should become a split panel - var ui = pandora.user.ui, canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level], css = { @@ -13,7 +10,6 @@ pandora.ui.infoView = function(data) { MozUserSelect: 'text', WebkitUserSelect: 'text' }, - copyright = !data.year || data.year + 60 >= new Date().getFullYear(), iconRatio = ui.icons == 'posters' ? (ui.showSitePosters ? 5/8 : data.posterRatio) : 1, iconSize = ui.infoIconSize, @@ -21,6 +17,7 @@ pandora.ui.infoView = function(data) { iconHeight = iconRatio < 1 ? iconSize : Math.round(iconSize / iconRatio), iconLeft = iconSize == 256 ? Math.floor((iconSize - iconWidth) / 2) : 0, borderRadius = ui.icons == 'posters' ? 0 : iconSize / 8, + isCopyrighted = !data.year || data.year + 60 >= new Date().getFullYear(), listWidth = 144 + Ox.UI.SCROLLBAR_SIZE, margin = 16, statisticsWidth = 128, @@ -767,8 +764,8 @@ pandora.ui.infoView = function(data) { items: pandora.site.rightsLevels.map(function(rightsLevel, i) { return {id: i, title: rightsLevel.name}; }).filter(function(rightsLevel) { - return (!copyright && rightsLevel.title != 'Under Copyright') - || (copyright && rightsLevel.title != 'Out of Copyright'); + return (!isCopyrighted && rightsLevel.title != 'Under Copyright') + || (isCopyrighted && rightsLevel.title != 'Out of Copyright'); }), width: 128, value: data.rightslevel