fix line wrap in clips view

This commit is contained in:
j 2012-03-09 23:28:52 +01:00
parent 5c439828ea
commit be41feadbd
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ pandora.ui.clipList = function(videoRatio) {
: a.value > b.value ? 1 : a.value > b.value ? 1
: 0; : 0;
}).map(function(annotation) { }).map(function(annotation) {
return Ox.stripTags(annotation.value).replace(/\n/g, ' '); return Ox.stripTags(annotation.value.replace(/\n/g, ' '));
}).join('; ') : ''; }).join('; ') : '';
url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg'; url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg';
sortKey = sort[0].key; sortKey = sort[0].key;

View file

@ -43,7 +43,7 @@ pandora.ui.itemClips = function(options) {
id: clip.id, id: clip.id,
info: Ox.formatDuration(clip['in']) + ' - ' + Ox.formatDuration(clip.out), info: Ox.formatDuration(clip['in']) + ' - ' + Ox.formatDuration(clip.out),
title: annotations.map(function(annotation) { title: annotations.map(function(annotation) {
return Ox.stripTags(annotation.value); return Ox.stripTags(annotation.value.replace(/\n/g, ' '));
}).join('; '), }).join('; '),
url: url, url: url,
}) })