diff --git a/source/Ox.UI/js/Video/VideoEditor.js b/source/Ox.UI/js/Video/VideoEditor.js index 13141c3e..dacc02d1 100644 --- a/source/Ox.UI/js/Video/VideoEditor.js +++ b/source/Ox.UI/js/Video/VideoEditor.js @@ -44,7 +44,6 @@ Ox.VideoEditor VideoEditor Object // fixme: should be VideoAnnotationEditor Ox.VideoEditor = function(options, self) { - self = self || {}; var that = Ox.Element({}, self) .defaults({ @@ -1137,7 +1136,8 @@ Ox.VideoEditor = function(options, self) { if (Ox.isUndefined(data)) { // doubleclick on small timeline data = getAnnotation(); - } else if (!data.id) { + } else if (!data.id && Ox.UI.elements[that.oxid]) { + // focus only if in the dom that.gainFocus(); } // FIXME