mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 03:38:26 -07:00
Updated sorting architecture so the collections can specify the sort-oddities instead of in backgrid column definitions.
This commit is contained in:
parent
2b6f908038
commit
6941888832
20 changed files with 173 additions and 186 deletions
|
@ -10,20 +10,6 @@ define(
|
|||
'title' : '',
|
||||
'active' : false,
|
||||
'tooltip': undefined
|
||||
},
|
||||
|
||||
sortValue: function () {
|
||||
var sortValue = this.get('sortValue');
|
||||
if (_.isString(sortValue)) {
|
||||
return this[sortValue];
|
||||
}
|
||||
else if (_.isFunction(sortValue)) {
|
||||
return sortValue;
|
||||
}
|
||||
|
||||
return function (model, colName) {
|
||||
return model.get(colName);
|
||||
};
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue