mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fully working add series
This commit is contained in:
@@ -4,7 +4,7 @@ define(
|
||||
'backbone',
|
||||
'Series/SeriesModel'
|
||||
], function (Backbone, SeriesModel) {
|
||||
var collection = Backbone.Collection.extend({
|
||||
var Collection = Backbone.Collection.extend({
|
||||
url : window.ApiRoot + '/series',
|
||||
model: SeriesModel,
|
||||
|
||||
@@ -18,5 +18,8 @@ define(
|
||||
}
|
||||
});
|
||||
|
||||
return new collection();
|
||||
var collection = new Collection();
|
||||
collection.fetch();
|
||||
|
||||
return collection;
|
||||
});
|
||||
|
Reference in New Issue
Block a user