From 5b6faa47b02473ac40078064d211ac4ed4b4b793 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 28 Apr 2010 15:39:39 +0100 Subject: [PATCH] fix the header click event handler --- deluge/ui/web/js/deluge-all/Sidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Sidebar.js b/deluge/ui/web/js/deluge-all/Sidebar.js index d8e67f787..f6690022a 100644 --- a/deluge/ui/web/js/deluge-all/Sidebar.js +++ b/deluge/ui/web/js/deluge-all/Sidebar.js @@ -82,11 +82,11 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, { this.doLayout(); this.panels[filter] = panel; - panel.header.on('click', function(panel) { + panel.header.on('click', function(header) { if (!deluge.config.sidebar_multiple_filters) { deluge.ui.update(); } - if (panel.list.getSelectionCount()) { + if (!panel.list.getSelectionCount()) { panel.list.select(0); } });