diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index dcc56297..529eb102 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -738,6 +738,11 @@ Ox.Input = function(options, self) { return that; }; + that.clearInput = function() { + clear(); + return that; + } + that.focusInput = function(select) { select = Ox.isUndefined(select) ? true : select; self.$input.focus(); diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index f9b297ec..3552f2ad 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -385,7 +385,7 @@ Ox.VideoPlayer = function(options, self) { tooltip: 'Previous [Shift+G]', type: 'image' }) - .css({float: 'left', opacity: 0.25}) + .css({float: 'left'}) .bindEvent({ click: function() { goToNextResult(-1); @@ -399,7 +399,7 @@ Ox.VideoPlayer = function(options, self) { tooltip: 'Next [G]', type: 'image' }) - .css({float: 'left', opacity: 0.25}) + .css({float: 'left'}) .bindEvent({ click: function() { goToNextResult(1); @@ -422,6 +422,9 @@ Ox.VideoPlayer = function(options, self) { }, blur: function() { self.inputHasFocus = false; + }, + submit: function() { + self.inputHasFocus = false; submitFindInput(); } }) @@ -454,9 +457,7 @@ Ox.VideoPlayer = function(options, self) { .bindEvent({ click: function() { self.$results.html('0'); - self.$findInput - .options({value: ''}) - .focusInput(); + self.$findInput.clearInput(); self.results = []; self.$timeline && self.$timeline.options({ results: self.results