mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
History state is persisted across page reloads now
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
define(
|
||||
[
|
||||
'History/HistoryModel',
|
||||
'backbone.pageable'
|
||||
], function (HistoryModel, PageableCollection) {
|
||||
return PageableCollection.extend({
|
||||
'backbone.pageable',
|
||||
'Mixins/AsPersistedStateCollection'
|
||||
], function (HistoryModel, PageableCollection, AsPersistedStateCollection) {
|
||||
var collection = PageableCollection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/history',
|
||||
model: HistoryModel,
|
||||
|
||||
@@ -48,4 +49,6 @@ define(
|
||||
return resp;
|
||||
}
|
||||
});
|
||||
|
||||
return AsPersistedStateCollection.apply(collection);
|
||||
});
|
||||
|
||||
@@ -80,7 +80,7 @@ define(
|
||||
|
||||
|
||||
initialize: function () {
|
||||
this.collection = new HistoryCollection();
|
||||
this.collection = new HistoryCollection({ tableName: 'history' });
|
||||
this.listenTo(this.collection, 'sync', this._showTable);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user