1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-10 04:52:42 +01:00
Radarr/UI/Series/SeriesCollection.js

26 lines
575 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
2013-06-30 21:57:26 +02:00
var Collection = Backbone.Collection.extend({
url : window.ApiRoot + '/series',
model: SeriesModel,
2013-05-02 09:09:35 +02:00
comparator: function (model) {
return model.get('title');
},
2013-05-02 09:09:35 +02:00
state: {
sortKey: 'title',
order : -1
}
});
2013-06-30 21:57:26 +02:00
var collection = new Collection();
collection.fetch();
return collection;
});