make sure doubleclicking on timeline doesn't turn non-editable annotations into editing state

This commit is contained in:
rlx 2012-02-19 09:06:57 +00:00
parent 696741190a
commit 61402492c6

View file

@ -334,7 +334,11 @@ Ox.VideoEditor = function(options, self) {
top: self.sizes.timeline[1].top + 'px', top: self.sizes.timeline[1].top + 'px',
}) })
.bindEvent({ .bindEvent({
edit: editAnnotation, edit: function() {
if (isEditable() && !self.editing) {
editAnnotation();
}
},
position: function(data) { position: function(data) {
setPosition(data.position); setPosition(data.position);
}, },