This commit is contained in:
rolux 2012-06-06 13:23:53 +00:00
parent 7375660ebc
commit baad1b949c

View file

@ -28,7 +28,7 @@ pandora.ui.sequencesDialog = function(id, position) {
hash = result.data.hash; hash = result.data.hash;
$sidebar = Ox.Element(), // add video player $sidebar = Ox.Element(), // add video player
$list = Ox.IconList({ $list = Ox.IconList({
fixedRatio: fixedRatio fixedRatio: fixedRatio,
item: function(data, sort, size) { item: function(data, sort, size) {
var ratio = data.videoRatio, var ratio = data.videoRatio,
width = ratio > fixedRatio ? size : Math.round(size * ratio / fixedRatio), width = ratio > fixedRatio ? size : Math.round(size * ratio / fixedRatio),
@ -38,7 +38,7 @@ pandora.ui.sequencesDialog = function(id, position) {
id: data.id, id: data.id,
info: Ox.formatDuration(data['in']) + ' - ' + Ox.formatDuration(data.out), info: Ox.formatDuration(data['in']) + ' - ' + Ox.formatDuration(data.out),
title: data.title + (data.director.length ? ' (' + data.director.join(', ') + ')' : ''), title: data.title + (data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
url: '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg'; url: '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg',
width: width width: width
}; };
}, },