Missing doesn't double fetch

This commit is contained in:
Mark McDowall 2013-05-02 17:25:51 -07:00
commit 6a3d886588
7 changed files with 12 additions and 18 deletions

View file

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