forked from 0x2620/oxjs
update DocPanel and ExamplePanel
This commit is contained in:
parent
d060a94131
commit
606497fbdd
2 changed files with 6 additions and 4 deletions
|
|
@ -47,7 +47,7 @@ Ox.DocPanel = function(options, self) {
|
|||
.options(options || {});
|
||||
|
||||
self.$list = Ox.Element();
|
||||
self.$page = Ox.Element().append(self.options.element);
|
||||
self.$page = Ox.Element();
|
||||
|
||||
that.setElement(
|
||||
self.$panel = Ox.SplitPanel({
|
||||
|
|
@ -174,6 +174,8 @@ Ox.DocPanel = function(options, self) {
|
|||
that.$element.replaceElement(1, self.$page);
|
||||
that.triggerEvent('select', {id: self.options.selected});
|
||||
}
|
||||
} else {
|
||||
self.$page.empty().append(self.options.element);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue