avoid double annotation on blur, fixes #3196
This commit is contained in:
parent
cbd948740a
commit
c821817c38
1 changed files with 5 additions and 2 deletions
|
@ -327,6 +327,7 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
blur: function(data) {
|
||||
if (data && data.id[0] == '_') {
|
||||
changeAnnotation(data);
|
||||
that.triggerEvent('blur');
|
||||
} else {
|
||||
// the video editor will, if it has not received focus,
|
||||
// call blurItem
|
||||
|
@ -410,9 +411,11 @@ Ox.AnnotationFolder = function(options, self) {
|
|||
|
||||
function changeAnnotation(data) {
|
||||
var item = Ox.getObjectById(self.options.items, data.id);
|
||||
if (item.value != data.value) {
|
||||
item.value = data.value;
|
||||
that.triggerEvent('change', item);
|
||||
}
|
||||
}
|
||||
|
||||
function crossesPoint() {
|
||||
var positions = Ox.sort([self.position, self.options.position]);
|
||||
|
|
Loading…
Reference in a new issue