edit clip list in grid view: use 'title (director)' as title

This commit is contained in:
rlx 2013-07-15 14:46:51 +00:00
parent deddd58dd7
commit 654850f0b9

View file

@ -267,12 +267,14 @@ Ox.ClipPanel = function(options, self) {
fixedRatio: pandora.site.video.previewRatio,
item: function(data, sort, size) {
size = size || 128; // fixme: is this needed?
var ratio = 16/9, //data.videoRatio,
var ratio = data.videoRatio,
fixedRatio = pandora.site.video.previewRatio,
width = ratio > fixedRatio ? size : Math.round(size * ratio / fixedRatio),
height = Math.round(width / ratio),
info,
title = data.item,
title = data.title + (
data.director ? ' (' + data.director.join(', ') + ')' : ''
),
url = self.options.getClipImageURL(data.id, width, height);
if (['text', 'position', 'duration', 'random'].indexOf(sort[0].key) > -1) {
info = Ox.formatDuration(data['in']) + ' - '