api dialog: add switch button

This commit is contained in:
rolux 2013-03-04 12:53:13 +00:00
parent 822e92a7ab
commit 4b9336078b

View file

@ -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},