mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
Sorting on all series views is now working
New: Sorting is now persisted on a per page and browser basis New: Series lists now support sorting on all views
This commit is contained in:
@@ -6,8 +6,9 @@ define(
|
||||
'Shared/Toolbar/ButtonModel',
|
||||
'Shared/Toolbar/Radio/RadioButtonCollectionView',
|
||||
'Shared/Toolbar/Button/ButtonCollectionView',
|
||||
'Shared/Toolbar/Sorting/SortingButtonCollectionView',
|
||||
'underscore'
|
||||
], function (Marionette, ButtonCollection, ButtonModel, RadioButtonCollectionView, ButtonCollectionView,_) {
|
||||
], function (Marionette, ButtonCollection, ButtonModel, RadioButtonCollectionView, ButtonCollectionView, SortingButtonCollectionView, _) {
|
||||
return Marionette.Layout.extend({
|
||||
template: 'Shared/Toolbar/ToolbarLayoutTemplate',
|
||||
|
||||
@@ -78,6 +79,15 @@ define(
|
||||
});
|
||||
break;
|
||||
}
|
||||
case 'sorting':
|
||||
{
|
||||
buttonGroupView = new SortingButtonCollectionView({
|
||||
collection : groupCollection,
|
||||
menu : buttonGroup,
|
||||
viewCollection: buttonGroup.viewCollection
|
||||
});
|
||||
break;
|
||||
}
|
||||
default :
|
||||
{
|
||||
buttonGroupView = new ButtonCollectionView({
|
||||
|
Reference in New Issue
Block a user