forked from 0x2620/oxjs
update video editor and css
This commit is contained in:
parent
88f31a5ae3
commit
e4dd393834
5 changed files with 65 additions and 9 deletions
|
|
@ -22,6 +22,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
self = self || {};
|
||||
var that = Ox.Element({}, self)
|
||||
.defaults({
|
||||
collapsed: false,
|
||||
editable: false,
|
||||
id: '',
|
||||
items: [],
|
||||
|
|
@ -50,7 +51,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
|
||||
that.setElement(
|
||||
Ox.CollapsePanel({
|
||||
collapsed: false,
|
||||
collapsed: self.options.collapsed,
|
||||
extras: self.options.editable ? [
|
||||
Ox.Button({
|
||||
id: 'add',
|
||||
|
|
@ -147,7 +148,8 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
|
||||
function togglePanel() {
|
||||
|
||||
self.options.collapsed = !self.options.collapsed;
|
||||
that.triggerEvent('toggle', {collapsed: self.options.collapsed});
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue