forked from 0x2620/pandora
api dialog: add switch button
This commit is contained in:
parent
822e92a7ab
commit
4b9336078b
1 changed files with 10 additions and 2 deletions
|
@ -26,6 +26,15 @@ pandora.ui.apiDialog = function() {
|
|||
|
||||
that = Ox.Dialog({
|
||||
buttons: [
|
||||
Ox.Button({
|
||||
id: 'switch',
|
||||
title: 'Help...'
|
||||
}).bindEvent({
|
||||
click: function() {
|
||||
pandora.UI.set({page: 'help', 'hash.anchor': ''})
|
||||
}
|
||||
}),
|
||||
{},
|
||||
Ox.Button({
|
||||
id: 'close',
|
||||
title: 'Close'
|
||||
|
@ -48,7 +57,7 @@ pandora.ui.apiDialog = function() {
|
|||
})
|
||||
.bindEvent({
|
||||
close: function() {
|
||||
pandora.UI.set({page: '', 'hash.anchor': ''});
|
||||
pandora.user.ui.page == 'api' && pandora.UI.set({page: '', 'hash.anchor': ''});
|
||||
},
|
||||
resize: function() {
|
||||
$list.size();
|
||||
|
@ -105,7 +114,6 @@ pandora.ui.apiDialog = function() {
|
|||
})
|
||||
.html(overview);
|
||||
|
||||
|
||||
$panel = Ox.SplitPanel({
|
||||
elements: [
|
||||
{element: $list, size: 192},
|
||||
|
|
Loading…
Reference in a new issue