From be41feadbdb7abdb87a8bf6fe93b29706f703a5c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 9 Mar 2012 23:28:52 +0100 Subject: [PATCH] fix line wrap in clips view --- static/js/pandora/clipList.js | 2 +- static/js/pandora/itemClips.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index 1c652a18..ff33d9b9 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -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; diff --git a/static/js/pandora/itemClips.js b/static/js/pandora/itemClips.js index 0360d974..b6b2155d 100644 --- a/static/js/pandora/itemClips.js +++ b/static/js/pandora/itemClips.js @@ -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, })