trigger change event for new annotations on blur

This commit is contained in:
j 2018-10-09 16:25:41 +02:00
parent 63501ebe96
commit 56cbb3b90c

View file

@ -318,10 +318,14 @@ Ox.AnnotationFolder = function(options, self) {
} }
that.triggerEvent('add', {value: data.value || ''}); that.triggerEvent('add', {value: data.value || ''});
}, },
blur: function() { blur: function(data) {
// the video editor will, if it has not received focus, if (data.id[0] == '_') {
// call blurItem changeAnnotation(data);
that.triggerEvent('blur'); } else {
// the video editor will, if it has not received focus,
// call blurItem
that.triggerEvent('blur');
}
}, },
change: changeAnnotation, change: changeAnnotation,
'delete': removeAnnotation, 'delete': removeAnnotation,