diff --git a/static/js/pandora/apiDialog.js b/static/js/pandora/apiDialog.js index 11bfcc66..bc344341 100644 --- a/static/js/pandora/apiDialog.js +++ b/static/js/pandora/apiDialog.js @@ -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},