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) {
|
blur: function(data) {
|
||||||
if (data && data.id[0] == '_') {
|
if (data && data.id[0] == '_') {
|
||||||
changeAnnotation(data);
|
changeAnnotation(data);
|
||||||
|
that.triggerEvent('blur');
|
||||||
} else {
|
} else {
|
||||||
// the video editor will, if it has not received focus,
|
// the video editor will, if it has not received focus,
|
||||||
// call blurItem
|
// call blurItem
|
||||||
|
@ -410,8 +411,10 @@ Ox.AnnotationFolder = function(options, self) {
|
||||||
|
|
||||||
function changeAnnotation(data) {
|
function changeAnnotation(data) {
|
||||||
var item = Ox.getObjectById(self.options.items, data.id);
|
var item = Ox.getObjectById(self.options.items, data.id);
|
||||||
item.value = data.value;
|
if (item.value != data.value) {
|
||||||
that.triggerEvent('change', item);
|
item.value = data.value;
|
||||||
|
that.triggerEvent('change', item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function crossesPoint() {
|
function crossesPoint() {
|
||||||
|
|
Loading…
Reference in a new issue