From 654850f0b938e5770c11adaa1d7d64a7ca964015 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 15 Jul 2013 14:46:51 +0000 Subject: [PATCH] edit clip list in grid view: use 'title (director)' as title --- source/Ox.UI/js/Video/ClipPanel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/ClipPanel.js b/source/Ox.UI/js/Video/ClipPanel.js index 96fd3900..8af97c25 100644 --- a/source/Ox.UI/js/Video/ClipPanel.js +++ b/source/Ox.UI/js/Video/ClipPanel.js @@ -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']) + ' - '