mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
updated history/missing layout to use collection sync events.
This commit is contained in:
parent
57540f9ecb
commit
2735e41098
2 changed files with 16 additions and 14 deletions
|
@ -74,16 +74,17 @@ define(
|
|||
}));
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
var self = this;
|
||||
|
||||
this.missing.show(new LoadingView());
|
||||
|
||||
initialize: function () {
|
||||
this.missingCollection = new MissingCollection();
|
||||
this.missingCollection.fetch().done(function () {
|
||||
self._showTable();
|
||||
});
|
||||
|
||||
this.listenTo(this.missingCollection, 'sync', this._showTable);
|
||||
},
|
||||
|
||||
|
||||
onShow: function () {
|
||||
this.missing.show(new LoadingView());
|
||||
this.missingCollection.fetch();
|
||||
this._showToolbar();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue