|
|
|
@ -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;
|
|
|
|
|