From 56cbb3b90cdaa66d093c9d14f1de7d1717ca8fa5 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 9 Oct 2018 16:25:41 +0200 Subject: [PATCH] trigger change event for new annotations on blur --- source/UI/js/Video/AnnotationFolder.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/UI/js/Video/AnnotationFolder.js b/source/UI/js/Video/AnnotationFolder.js index fab2bb0f..b889c46f 100644 --- a/source/UI/js/Video/AnnotationFolder.js +++ b/source/UI/js/Video/AnnotationFolder.js @@ -318,10 +318,14 @@ Ox.AnnotationFolder = function(options, self) { } that.triggerEvent('add', {value: data.value || ''}); }, - blur: function() { - // the video editor will, if it has not received focus, - // call blurItem - that.triggerEvent('blur'); + blur: function(data) { + if (data.id[0] == '_') { + changeAnnotation(data); + } else { + // the video editor will, if it has not received focus, + // call blurItem + that.triggerEvent('blur'); + } }, change: changeAnnotation, 'delete': removeAnnotation,