mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +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:
@@ -11,6 +11,14 @@ define(
|
||||
'click': 'onClick'
|
||||
},
|
||||
|
||||
_originalInit: Backgrid.HeaderCell.prototype.initialize,
|
||||
|
||||
initialize: function (options) {
|
||||
this._originalInit.call(this, options);
|
||||
|
||||
this.listenTo(this.collection, 'drone:sort', this.render);
|
||||
},
|
||||
|
||||
render: function () {
|
||||
this.$el.empty();
|
||||
this.$el.append(this.column.get('label'));
|
||||
@@ -37,6 +45,10 @@ define(
|
||||
if (key === this.column.get('name')) {
|
||||
this._setSortIcon(order);
|
||||
}
|
||||
|
||||
else {
|
||||
this._removeSortIcon();
|
||||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user