mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-11 23:57:11 -07:00
added page loading animation while the app is loading.
This commit is contained in:
parent
4ff068db0a
commit
a2db70bb19
9 changed files with 181 additions and 224 deletions
|
@ -6,8 +6,9 @@ require(
|
|||
'Controller',
|
||||
'Series/SeriesCollection',
|
||||
'Navbar/NavbarView',
|
||||
'jQuery/RouteBinder'
|
||||
], function (App, Marionette, Controller, SeriesCollection,NavbarView, RouterBinder) {
|
||||
'jQuery/RouteBinder',
|
||||
'jquery'
|
||||
], function (App, Marionette, Controller, SeriesCollection, NavbarView, RouterBinder, $) {
|
||||
|
||||
var Router = Marionette.AppRouter.extend({
|
||||
|
||||
|
@ -36,11 +37,11 @@ require(
|
|||
|
||||
App.Router = new Router();
|
||||
|
||||
SeriesCollection.fetch()
|
||||
.done(function(){
|
||||
SeriesCollection.fetch().done(function () {
|
||||
Backbone.history.start({ pushState: true });
|
||||
RouterBinder.bind(App.Router);
|
||||
App.navbarRegion.show(new NavbarView());
|
||||
$('body').addClass('started');
|
||||
})
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue