mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-13 18:27:08 -07:00
Moved source code under src folder - massive change
This commit is contained in:
parent
2fc8123d6b
commit
5bf0e197ec
1499 changed files with 1054 additions and 1444 deletions
23
src/UI/Series/SeriesCollection.js
Normal file
23
src/UI/Series/SeriesCollection.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Series/SeriesModel'
|
||||
], function (Backbone, SeriesModel) {
|
||||
var Collection = Backbone.Collection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/series',
|
||||
model: SeriesModel,
|
||||
|
||||
comparator: function (model) {
|
||||
return model.get('title');
|
||||
},
|
||||
|
||||
state: {
|
||||
sortKey: 'title',
|
||||
order : -1
|
||||
}
|
||||
});
|
||||
|
||||
var collection = new Collection();
|
||||
return collection;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue