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
: 0;
}).map(function(annotation) {
return Ox.stripTags(annotation.value).replace(/\n/g, ' ');
return Ox.stripTags(annotation.value.replace(/\n/g, ' '));
}).join('; ') : '';
url = '/' + data.id.split('/')[0] + '/' + height + 'p' + data['in'] + '.jpg';
sortKey = sort[0].key;

View file

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