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:
parent
d6715fcbb9
commit
d44a357284
|
@ -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];
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue