1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Series/SeriesCollection.js

21 lines
468 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
return Backbone.Collection.extend({
url : window.ApiRoot + '/series',
model: SeriesModel,
2013-05-02 10:09:35 +03:00
comparator: function (model) {
return model.get('title');
},
2013-05-02 10:09:35 +03:00
state: {
sortKey: 'title',
order : -1
}
});
});