From 759a8d7f69592581affaff23ad8e8790123d807d Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 12 Aug 2013 12:31:52 +0000 Subject: [PATCH] update disabled status of filters submenu --- static/js/mainMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index ce0bf13a..bc1ab8bb 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -97,7 +97,7 @@ pandora.ui.mainMenu = function() { }) } ] }, {}, - { id: 'filters', title: Ox._('Filters'), items: [ + { id: 'filters', title: Ox._('Filters'), disabled: ui.section != 'items', items: [ { id: 'clearfilters', title: Ox._('Clear Filters'), disabled: Ox.sum(ui._filterState.map(function(filterState) { return filterState.selected.length; })) == 0, keyboard: 'shift alt control a' }, @@ -126,7 +126,7 @@ pandora.ui.mainMenu = function() { { id: 'showfilters', title: Ox._((ui.showFilters ? 'Hide' : 'Show') + ' Filters'), - disabled: !!ui.item, keyboard: 'shift f' + disabled: ui.section != 'items' || !!ui.item, keyboard: 'shift f' }, { id: 'showbrowser',