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