mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Missing doesn't double fetch
This commit is contained in:
parent
9823560ec0
commit
6a3d886588
7 changed files with 12 additions and 18 deletions
|
@ -30,15 +30,6 @@ Backgrid.NzbDroneHeaderCell = Backgrid.HeaderCell.extend({
|
|||
var sortKey = this.collection.state.sortKey;
|
||||
var sortDir = this._convertIntToDirection(this.collection.state.order);
|
||||
|
||||
if (sortKey === this.column.get('name')) {
|
||||
this.$el.children('i').addClass(this._convertDirectionToIcon(sortDir));
|
||||
this._direction = sortDir;
|
||||
}
|
||||
}
|
||||
else if (this.collection.defaultSortKey) {
|
||||
var sortKey = this.collection.defaultSortKey;
|
||||
var sortDir = this._convertIntToDirection(this.collection.defaultSortDir);
|
||||
|
||||
if (sortKey === this.column.get('name')) {
|
||||
this.$el.children('i').addClass(this._convertDirectionToIcon(sortDir));
|
||||
this._direction = sortDir;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue