mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Support for persistent state for collections
This commit is contained in:
@@ -2,11 +2,13 @@
|
||||
define(
|
||||
[
|
||||
'Series/EpisodeModel',
|
||||
'backbone.pageable'
|
||||
], function (EpisodeModel, PagableCollection) {
|
||||
return PagableCollection.extend({
|
||||
'backbone.pageable',
|
||||
'Mixins/AsPersistedStateCollection'
|
||||
], function (EpisodeModel, PagableCollection, AsPersistedStateCollection) {
|
||||
var collection = PagableCollection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/missing',
|
||||
model: EpisodeModel,
|
||||
tableName: 'missing',
|
||||
|
||||
state: {
|
||||
pageSize: 15,
|
||||
@@ -38,4 +40,6 @@ define(
|
||||
return resp;
|
||||
}
|
||||
});
|
||||
|
||||
return AsPersistedStateCollection.call(collection);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user