1
0
Fork 0
forked from 0x2620/oxjs

use Ox.highlight; minor reformatting

This commit is contained in:
rolux 2012-06-03 10:41:18 +02:00
commit 4ba06fde41
7 changed files with 21 additions and 15 deletions

View file

@ -209,10 +209,11 @@ Ox.BlockVideoTimeline = function(options, self) {
subtitle = getSubtitle(position);
self.$tooltip.options({
title: subtitle
? '<span class=\'OxBright\'>' +
Ox.highlight(subtitle.text, self.options.find, 'OxHighlight').replace(/\n/g, '<br/>') +
'</span><br/>' +
Ox.formatDuration(subtitle['in'], 3) + ' - '
? '<span class=\'OxBright\'>'
+ Ox.highlight(
subtitle.text, self.options.find, 'OxHighlight'
).replace(/\n/g, '<br/>') + '</span><br/>'
+ Ox.formatDuration(subtitle['in'], 3) + ' - '
+ Ox.formatDuration(subtitle['out'], 3)
: Ox.formatDuration(position)
})