mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
'use strict';
|
||||
define(['app', 'Series/SeriesModel'], function () {
|
||||
NzbDrone.Series.SeriesCollection = Backbone.Collection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/series',
|
||||
model: NzbDrone.Series.SeriesModel,
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone',
|
||||
'Series/SeriesModel'
|
||||
], function (Backbone, SeriesModel) {
|
||||
return Backbone.Collection.extend({
|
||||
url : window.ApiRoot + '/series',
|
||||
model: SeriesModel,
|
||||
|
||||
comparator: function(model) {
|
||||
return model.get('title');
|
||||
},
|
||||
comparator: function (model) {
|
||||
return model.get('title');
|
||||
},
|
||||
|
||||
state: {
|
||||
sortKey: 'title',
|
||||
order: -1
|
||||
}
|
||||
state: {
|
||||
sortKey: 'title',
|
||||
order : -1
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return NzbDrone.Series.SeriesCollection;
|
||||
});
|
||||
|
Reference in New Issue
Block a user