forked from 0x2620/oxjs
changes in video editor and list map
This commit is contained in:
parent
76466e7eeb
commit
353fce1f14
5 changed files with 41 additions and 26 deletions
|
|
@ -261,8 +261,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
|
||||
function scrollToSelected(type) {
|
||||
try {
|
||||
Ox.print('scrollToSelected $item', that.find('.OxEditableElement.OxSelected'))
|
||||
//try {
|
||||
var $item = that.find('.OxEditableElement.OxSelected'),
|
||||
itemHeight = $item.height() + (type == 'text' ? 8 : 0),
|
||||
itemTop = $item.offset().top,
|
||||
|
|
@ -280,9 +279,9 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
scrollTop: scrollTop + 'px'
|
||||
}, 0);
|
||||
}
|
||||
} catch(e) {
|
||||
Ox.print('THIS SHOULD NOT HAPPEN');
|
||||
}
|
||||
//} catch(e) {
|
||||
// Ox.print('THIS SHOULD NOT HAPPEN');
|
||||
//}
|
||||
}
|
||||
|
||||
function selectAnnotation(data, index) {
|
||||
|
|
|
|||
|
|
@ -692,7 +692,8 @@ Ox.VideoEditor = function(options, self) {
|
|||
// we need a timeout so that a chained bindEvent
|
||||
// actually catches the event
|
||||
self.options.find && setTimeout(function() {
|
||||
submitFindInput(self.options.find, true);
|
||||
// only submit if no annotation is selected
|
||||
submitFindInput(self.options.find, !self.options.selected);
|
||||
}, 0);
|
||||
|
||||
function addAnnotation(layer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue