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({
|
that = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
Ox.Button({
|
||||||
|
id: 'switch',
|
||||||
|
title: 'Help...'
|
||||||
|
}).bindEvent({
|
||||||
|
click: function() {
|
||||||
|
pandora.UI.set({page: 'help', 'hash.anchor': ''})
|
||||||
|
}
|
||||||
|
}),
|
||||||
|
{},
|
||||||
Ox.Button({
|
Ox.Button({
|
||||||
id: 'close',
|
id: 'close',
|
||||||
title: 'Close'
|
title: 'Close'
|
||||||
|
@ -48,7 +57,7 @@ pandora.ui.apiDialog = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
close: function() {
|
close: function() {
|
||||||
pandora.UI.set({page: '', 'hash.anchor': ''});
|
pandora.user.ui.page == 'api' && pandora.UI.set({page: '', 'hash.anchor': ''});
|
||||||
},
|
},
|
||||||
resize: function() {
|
resize: function() {
|
||||||
$list.size();
|
$list.size();
|
||||||
|
@ -105,7 +114,6 @@ pandora.ui.apiDialog = function() {
|
||||||
})
|
})
|
||||||
.html(overview);
|
.html(overview);
|
||||||
|
|
||||||
|
|
||||||
$panel = Ox.SplitPanel({
|
$panel = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
{element: $list, size: 192},
|
{element: $list, size: 192},
|
||||||
|
|
Loading…
Reference in a new issue