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