From 202d11177bc988d541779dff3f7cde79406e3717 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 21 Feb 2012 10:10:39 +0000 Subject: [PATCH] some work towards making places and events editable from annotations panel (#561) --- source/Ox.UI/js/Calendar/Ox.ListCalendar.js | 1 + source/Ox.UI/js/Video/Ox.AnnotationPanel.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js index c7083287..8b5e8d93 100644 --- a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js +++ b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js @@ -269,6 +269,7 @@ Ox.ListCalendar = function(options, self) { return !!event.type; }), height: self.options.height, + selected: self.options.selected, showControls: self.options.showControls, showToolbar: true, showZoombar: true, diff --git a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js index 6a215e27..e14b296c 100644 --- a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js +++ b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js @@ -288,7 +288,7 @@ Ox.AnnotationPanel = function(options, self) { }); } else if (data.id == 'manage') { that.triggerEvent('define', { - id: self.options.selected, + id: getAnnotation(self.options.selected)[type].id, type: type }); } else if (data.id == 'save') {