From 6e01a73178c522d36390c9d530b03dc8e1030634 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 11 Feb 2015 15:11:59 +0100 Subject: [PATCH] fix #2673 (editor focus lost after player position submit) --- source/UI/js/Video/VideoAnnotationPanel.js | 3 +++ source/UI/js/Video/VideoPlayer.js | 1 + 2 files changed, 4 insertions(+) diff --git a/source/UI/js/Video/VideoAnnotationPanel.js b/source/UI/js/Video/VideoAnnotationPanel.js index a6b5d3b6..c92e196d 100644 --- a/source/UI/js/Video/VideoAnnotationPanel.js +++ b/source/UI/js/Video/VideoAnnotationPanel.js @@ -440,6 +440,9 @@ Ox.VideoAnnotationPanel = function(options, self) { size: function() { toggleSize(); }, + submit: function() { + that.gainFocus(); + }, subtitles: function(data) { that.triggerEvent('subtitles', data); }, diff --git a/source/UI/js/Video/VideoPlayer.js b/source/UI/js/Video/VideoPlayer.js index 96f71e91..0ac64ab5 100644 --- a/source/UI/js/Video/VideoPlayer.js +++ b/source/UI/js/Video/VideoPlayer.js @@ -2503,6 +2503,7 @@ Ox.VideoPlayer = function(options, self) { that.triggerEvent('position', { position: self.options.position }); + that.triggerEvent('submit'); } function toggleFind() {