web: fix the sidebar and filterpanels

The filters in the sidebar can now be switch between finally. It
was down to the setTitle method overwriting whatever the accordion
layout was adding in.
This commit is contained in:
Damien Churchill 2011-10-05 02:31:51 +01:00
parent d6715fcbb9
commit d44a357284
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@ Ext.define('Deluge.FilterPanel', {
fl = p.substring(0, 1).toUpperCase();
title += fl + p.substring(1) + ' ';
});
this.setTitle(_(title));
this.title = _(title);
if (Deluge.FilterPanel.templates[this.filterType]) {
var tpl = Deluge.FilterPanel.templates[this.filterType];

View File

@ -47,6 +47,10 @@ Ext.define('Deluge.Sidebar', {
cls: 'deluge-sidebar',
title: _('Filters'),
layout: 'accordion',
layoutCfg: {
multi: true,
collapseFirst: true
},
split: true,
width: 200,
minSize: 175,