forked from 0x2620/oxjs
update video editor
This commit is contained in:
parent
43d04f242d
commit
ef82ff8967
3 changed files with 17 additions and 12 deletions
|
|
@ -101,7 +101,6 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
self.$annotations.appendTo(that.$content);
|
||||
|
||||
//Ox.print('SOS', self.options.selected);
|
||||
self.options.selected && setTimeout(function() {
|
||||
selectAnnotation({id: self.options.selected});
|
||||
}, 0);
|
||||
|
|
@ -142,6 +141,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
var item = Ox.getObjectById(self.options.items, data.id);
|
||||
item.value = data.value;
|
||||
self.editing = false;
|
||||
self.$annotations.options({items: self.options.items});
|
||||
that.triggerEvent('submit', item);
|
||||
}
|
||||
|
||||
|
|
@ -174,10 +174,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
items: getAnnotations()
|
||||
});
|
||||
} else if (key == 'selected') {
|
||||
self.$annotations.options('selected', value);
|
||||
self.$annotations.options({selected: value});
|
||||
} else if (key == 'sort') {
|
||||
self.sort = getSort();
|
||||
self.$annotations.options('sort', self.sort);
|
||||
self.$annotations.options({sort: self.sort});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue