From b6de7b2e4dbf86a02d5fab1ddc2f494b63fe7e94 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 10 Nov 2011 09:12:09 +0000 Subject: [PATCH] fix keyboard handlers for preferences and help dialogs --- static/js/pandora/menu.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index 2a6d16b3..3ffb668c 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -303,7 +303,7 @@ pandora.ui.mainMenu = function() { }, key_control_comma: function() { if (!pandora.hasDialogOrScreen()) { - pandora.URL.push('/preferences'); + pandora.UI.set({page: 'preferences'}); } }, key_control_f: function() { @@ -318,7 +318,7 @@ pandora.ui.mainMenu = function() { }, key_control_slash: function() { if (!pandora.hasDialogOrScreen()) { - pandora.URL.push('/help'); + pandora.UI.set({page: 'help'}); } }, key_control_w: function() { @@ -479,7 +479,7 @@ pandora.ui.mainMenu = function() { { id: 'descending', title: 'Descending', checked: (ui.listSort[0].operator || pandora.getSortOperator(ui.listSort[0].key)) == '-' } ]} ] }, - { id: 'advancedsort', title: 'Advanced Sort...', keyboard: 'shift control s', disabled: true }, + { id: 'advancedsort', title: 'Advanced Sort...', keyboard: 'shift control s' }, {}, { id: 'sortfilters', title: 'Sort Filters', items: pandora.user.ui.filters.map(function(filter) { return {