subtitles have .value for text

This commit is contained in:
j 2011-01-28 15:01:12 +05:30
parent d625114048
commit 3c12802ece

View file

@ -10817,7 +10817,7 @@ requires
self.$tooltip = new Ox.Tooltip({ self.$tooltip = new Ox.Tooltip({
title: subtitle ? title: subtitle ?
'<span class=\'OxBright\'>' + '<span class=\'OxBright\'>' +
Ox.highlight(subtitle.text, self.options.find).replace(/\n/g, '<br/>') + '</span><br/>' + Ox.highlight(subtitle.value, self.options.find).replace(/\n/g, '<br/>') + '</span><br/>' +
Ox.formatDuration(subtitle['in'], 3) + ' - ' + Ox.formatDuration(subtitle['out'], 3) : Ox.formatDuration(subtitle['in'], 3) + ' - ' + Ox.formatDuration(subtitle['out'], 3) :
Ox.formatDuration(position, 3) Ox.formatDuration(position, 3)
}) })
@ -10955,7 +10955,7 @@ requires
left: (v['in'] * self.fps) + 'px', left: (v['in'] * self.fps) + 'px',
width: (((v['out'] - v['in']) * self.fps) - 4) + 'px' width: (((v['out'] - v['in']) * self.fps) - 4) + 'px'
}) })
.html(Ox.highlight(v.text, self.options.find)) .html(Ox.highlight(v.value, self.options.find))
.appendTo(self.$timeline) .appendTo(self.$timeline)
}); });
@ -11233,7 +11233,7 @@ requires
self.$tooltip = new Ox.Tooltip({ self.$tooltip = new Ox.Tooltip({
title: subtitle ? title: subtitle ?
'<span class=\'OxBright\'>' + '<span class=\'OxBright\'>' +
Ox.highlight(subtitle.text, self.options.find).replace(/\n/g, '<br/>') + '</span><br/>' + Ox.highlight(subtitle.value, self.options.find).replace(/\n/g, '<br/>') + '</span><br/>' +
Ox.formatDuration(subtitle['in'], 3) + ' - ' + Ox.formatDuration(subtitle['out'], 3) : Ox.formatDuration(subtitle['in'], 3) + ' - ' + Ox.formatDuration(subtitle['out'], 3) :
Ox.formatDuration(position, 3) Ox.formatDuration(position, 3)
}) })
@ -11977,7 +11977,7 @@ requires
var subtitle = ''; var subtitle = '';
$.each(self.options.subtitles, function(i, v) { $.each(self.options.subtitles, function(i, v) {
if (v['in'] <= self.options.position && v['out'] > self.options.position) { if (v['in'] <= self.options.position && v['out'] > self.options.position) {
subtitle = v.text; subtitle = v.value;
return false; return false;
} }
}); });