From 5f8f1904fd90a7cc12bc4f2d687be928ad4425c0 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 18 May 2011 08:08:26 +0200 Subject: [PATCH] handle clear button --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index f76f0876..d33bc4c9 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -481,10 +481,13 @@ Ox.VideoPlayer = function(options, self) { .css({float: 'left'}) .bindEvent({ click: function() { + self.options.find = ''; + self.results = []; self.$results.html('0'); self.$findInput.clearInput(); - self.results = []; + self.subtitle && setSubtitleText(); self.$timeline && self.$timeline.options({ + find: self.options.find, results: self.results }); //setTimeout(self.$findInput.focusInput, 10); @@ -1647,7 +1650,8 @@ Ox.VideoPlayer = function(options, self) { self.$subtitle.html( self.subtitle ? Ox.highlight(self.subtitle, self.options.find, 'OxHighlight') - .replace(/\n/g, '
') : ' 
 ' // fixme: weird fullscreen bug + .replace(/\n/g, '
') : ' 
 ' + // FIXME: weird bug, only in fullscreen, only in chrome ); Ox.print('?!?', self.$subtitle.css('bottom'), self.$subtitle.height()) }