don't trigger edit annotation event with temporary id (fixes #369)

This commit is contained in:
rlx 2012-02-05 02:07:22 +00:00
parent 353fce1f14
commit 8d7d1fdf36

View file

@ -1049,12 +1049,14 @@ Ox.VideoEditor = function(options, self) {
'in': self.options['in'],
out: self.options.out
});
self.editing && that.triggerEvent('editannotation', {
id: self.options.selected,
'in': self.options['in'],
out: self.options.out,
value: $('.OxEditableElement input:visible').val()
});
if (self.editing && self.options.selected[0] != '_') {
that.triggerEvent('editannotation', {
id: self.options.selected,
'in': self.options['in'],
out: self.options.out,
value: $('.OxEditableElement input:visible').val()
});
}
}
}