2013-05-01 22:42:30 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
define(['app', 'Series/SeriesModel'], function () {
|
2013-05-20 22:45:16 +00:00
|
|
|
|
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
2013-03-29 23:28:58 +00:00
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/series',
|
2013-05-02 07:09:35 +00:00
|
|
|
|
model: NzbDrone.Series.SeriesModel,
|
|
|
|
|
|
2013-06-06 03:03:04 +00:00
|
|
|
|
comparator: function(model) {
|
|
|
|
|
return model.get('title');
|
|
|
|
|
},
|
2013-05-02 07:09:35 +00:00
|
|
|
|
|
2013-05-03 00:25:51 +00:00
|
|
|
|
state: {
|
|
|
|
|
sortKey: "title",
|
2013-06-06 03:03:04 +00:00
|
|
|
|
order: -1
|
2013-05-02 07:09:35 +00:00
|
|
|
|
}
|
2013-02-14 18:01:30 +00:00
|
|
|
|
});
|
2013-06-19 01:02:23 +00:00
|
|
|
|
|
|
|
|
|
return NzbDrone.Series.SeriesCollection;
|
2013-05-01 22:42:30 +00:00
|
|
|
|
});
|