edit clip list in grid view: use 'title (director)' as title
This commit is contained in:
parent
deddd58dd7
commit
654850f0b9
1 changed files with 4 additions and 2 deletions
|
@ -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']) + ' - '
|
||||
|
|
Loading…
Reference in a new issue