fix #847 (<i> tag in subtitle); test for before looping over it
This commit is contained in:
parent
2a58661c9a
commit
a87d193ac4
1 changed files with 3 additions and 3 deletions
|
@ -1645,7 +1645,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
|
||||
function hideMarkers() {
|
||||
Ox.forEach(self.$posterMarker, function(marker) {
|
||||
self.$posterMarker && Ox.forEach(self.$posterMarker, function(marker) {
|
||||
marker.hide();
|
||||
});
|
||||
Ox.forEach(self.$pointMarker, function(markers) {
|
||||
|
@ -1932,7 +1932,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
|
||||
function setMarkers() {
|
||||
//Ox.Log('Video', 'SET MARKERS', self.options.position, self.options['in'], self.options.out, self.$pointMarker);
|
||||
Ox.forEach(self.$posterMarker, function(marker) {
|
||||
self.$posterMarker && Ox.forEach(self.$posterMarker, function(marker) {
|
||||
isEqual(self.options.position, self.options.posterFrame)
|
||||
? marker.show() : marker.hide();
|
||||
});
|
||||
|
@ -2079,7 +2079,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
//Ox.Log('Video', 'setSubTx', self.subtitle, self.options.find)
|
||||
self.$subtitle.html(
|
||||
self.subtitle
|
||||
? Ox.highlight(self.subtitle, self.options.find, 'OxHighlight')
|
||||
? Ox.highlight(self.subtitle, self.options.find, 'OxHighlight', true)
|
||||
.replace(/\n/g, '<br/>')
|
||||
: ' <br/> '
|
||||
// FIXME: weird bug, only in fullscreen, only in chrome
|
||||
|
|
Loading…
Reference in a new issue