mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-20 21:16:56 +00:00
listenTo, not promise for log table loading
This commit is contained in:
parent
5b329ba3af
commit
ab60420f58
1 changed files with 1 additions and 6 deletions
|
@ -58,8 +58,8 @@ define(
|
||||||
|
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.collection = new LogCollection();
|
this.collection = new LogCollection();
|
||||||
this.collectionPromise = this.collection.fetch();
|
|
||||||
|
|
||||||
|
this.listenTo(this.collection, 'sync', this._showTable);
|
||||||
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
vent.on(vent.Events.CommandComplete, this._commandComplete, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -68,12 +68,7 @@ define(
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
var self = this;
|
|
||||||
this._showToolbar();
|
this._showToolbar();
|
||||||
|
|
||||||
this.collectionPromise.done(function () {
|
|
||||||
self._showTable();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_showTable: function () {
|
_showTable: function () {
|
||||||
|
|
Loading…
Reference in a new issue