From c4feabb3cb9cc9735ab2094ddc88f87416140785 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 4 Mar 2013 12:31:44 +0000 Subject: [PATCH] add switch button to help dialog --- static/js/pandora/helpDialog.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/js/pandora/helpDialog.js b/static/js/pandora/helpDialog.js index 22e0faea..820bd595 100644 --- a/static/js/pandora/helpDialog.js +++ b/static/js/pandora/helpDialog.js @@ -28,6 +28,15 @@ pandora.ui.helpDialog = function() { that = Ox.Dialog({ buttons: [ + Ox.Button({ + id: 'switch', + title: pandora.site.site.name + ' API...' + }).bindEvent({ + click: function() { + pandora.UI.set({page: 'api', 'hash.anchor': ''}) + } + }), + {}, Ox.Button({ id: 'close', title: 'Close'