add VideoAnnotationPanel options.selectResult

This commit is contained in:
j 2014-02-18 07:50:35 +00:00
parent 978cc88618
commit 3cd6399fff

View file

@ -78,6 +78,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
posterFrame: 0, posterFrame: 0,
resolution: 0, resolution: 0,
selected: '', selected: '',
selectResult: false,
showAnnotations: false, showAnnotations: false,
showAnnotationsCalendar: false, showAnnotationsCalendar: false,
showAnnotationsMap: false, showAnnotationsMap: false,
@ -883,7 +884,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
// we need a timeout so that a chained bindEvent // we need a timeout so that a chained bindEvent
// actually catches the event // actually catches the event
self.options.find && setTimeout(function() { self.options.find && self.options.selectResult && setTimeout(function() {
// only submit if no annotation is selected // only submit if no annotation is selected
submitFindInput(self.options.find, !self.options.selected); submitFindInput(self.options.find, !self.options.selected);
}); });