From 8d7d1fdf3698bea8b8fd63192589ce9cd3cc1a46 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 5 Feb 2012 02:07:22 +0000 Subject: [PATCH] don't trigger edit annotation event with temporary id (fixes #369) --- source/Ox.UI/js/Video/Ox.VideoEditor.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoEditor.js b/source/Ox.UI/js/Video/Ox.VideoEditor.js index a402e97b..b431d8c5 100644 --- a/source/Ox.UI/js/Video/Ox.VideoEditor.js +++ b/source/Ox.UI/js/Video/Ox.VideoEditor.js @@ -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() + }); + } } }