fix #2489; use new focus controller method

This commit is contained in:
rlx 2014-09-23 21:04:40 +02:00
parent 06c21e0a46
commit 2a6ea64eed

View file

@ -186,7 +186,9 @@ Ox.VideoPlayer = function(options, self) {
self.options.fullscreen = !self.options.fullscreen;
toggleFullscreen();
},
height: setSizes,
height: function() {
setSizes();
},
'in': function() {
self.options.paused && setMarkers();
self.$timeline && self.$timeline.options('in', self.options['in']);
@ -234,7 +236,9 @@ Ox.VideoPlayer = function(options, self) {
volume: function() {
setVolume(self.options.volume);
},
width: setSizes
width: function() {
setSizes();
}
})
.addClass('OxVideoPlayer');
@ -362,11 +366,7 @@ Ox.VideoPlayer = function(options, self) {
} else {
that.on({
click: function() {
var focused = Ox.Focus.focused();
if (
!focused
|| !Ox.UI.elements[focused].is('.OxInput')
) {
if (!Ox.Focus.focusedElementIsInput()) {
that.gainFocus();
}
}