From 3cd6399fffc1a948b40abcae6a803808493392d2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 18 Feb 2014 07:50:35 +0000 Subject: [PATCH] add VideoAnnotationPanel options.selectResult --- source/Ox.UI/js/Video/VideoAnnotationPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/VideoAnnotationPanel.js b/source/Ox.UI/js/Video/VideoAnnotationPanel.js index 7cadf44b..d9e7cad1 100644 --- a/source/Ox.UI/js/Video/VideoAnnotationPanel.js +++ b/source/Ox.UI/js/Video/VideoAnnotationPanel.js @@ -78,6 +78,7 @@ Ox.VideoAnnotationPanel = function(options, self) { posterFrame: 0, resolution: 0, selected: '', + selectResult: false, showAnnotations: false, showAnnotationsCalendar: false, showAnnotationsMap: false, @@ -883,7 +884,7 @@ Ox.VideoAnnotationPanel = function(options, self) { // we need a timeout so that a chained bindEvent // actually catches the event - self.options.find && setTimeout(function() { + self.options.find && self.options.selectResult && setTimeout(function() { // only submit if no annotation is selected submitFindInput(self.options.find, !self.options.selected); });