mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
History and missing show loading
This commit is contained in:
parent
37ea5f4b9a
commit
7824060c28
3 changed files with 66 additions and 59 deletions
|
@ -4,7 +4,8 @@ define([
|
|||
'Missing/Collection',
|
||||
'Series/Index/Table/AirDateCell',
|
||||
'Series/Index/Table/SeriesStatusCell',
|
||||
'Shared/Toolbar/ToolbarLayout'
|
||||
'Shared/Toolbar/ToolbarLayout',
|
||||
'Shared/LoadingView'
|
||||
],
|
||||
function () {
|
||||
NzbDrone.Missing.MissingLayout = Backbone.Marionette.Layout.extend({
|
||||
|
@ -48,7 +49,7 @@ define([
|
|||
}
|
||||
],
|
||||
|
||||
showTable: function () {
|
||||
_showTable: function () {
|
||||
this.missing.show(new Backgrid.Grid(
|
||||
{
|
||||
row : NzbDrone.Missing.Row,
|
||||
|
@ -63,17 +64,16 @@ define([
|
|||
}));
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.missingCollection = new NzbDrone.Missing.Collection();
|
||||
this.missingCollection.fetch();
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
this.showTable();
|
||||
//this.toolbar.show(new NzbDrone.Shared.Toolbar.ToolbarLayout({right: [ viewButtons], context: this}));
|
||||
}
|
||||
var self = this;
|
||||
|
||||
})
|
||||
;
|
||||
})
|
||||
;
|
||||
this.missing.show(new NzbDrone.Shared.LoadingView());
|
||||
|
||||
this.missingCollection = new NzbDrone.Missing.Collection();
|
||||
this.missingCollection.fetch()
|
||||
.done(function () {
|
||||
self._showTable();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue