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 || ''});
},
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,