mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
UI Cleanup - Updated root tree.
This commit is contained in:
+14
-7
@@ -1,4 +1,4 @@
|
||||
var $ = require('jquery');
|
||||
var $ = require('jquery');
|
||||
var Backbone = require('backbone');
|
||||
var Marionette = require('marionette');
|
||||
var RouteBinder = require('./jQuery/RouteBinder');
|
||||
@@ -23,13 +23,18 @@ new SeriesController();
|
||||
new ModalController();
|
||||
new ControlPanelController();
|
||||
new Router();
|
||||
|
||||
var app = new Marionette.Application();
|
||||
app.addInitializer(function(){
|
||||
|
||||
app.addInitializer(function() {
|
||||
console.log('starting application');
|
||||
});
|
||||
app.addInitializer(SignalRBroadcaster.appInitializer, {app : app});
|
||||
app.addInitializer(Tooltip.appInitializer, {app : app});
|
||||
app.addInitializer(function(){
|
||||
|
||||
app.addInitializer(SignalRBroadcaster.appInitializer, { app : app });
|
||||
|
||||
app.addInitializer(Tooltip.appInitializer, { app : app });
|
||||
|
||||
app.addInitializer(function() {
|
||||
Backbone.history.start({
|
||||
pushState : true,
|
||||
root : serverStatusModel.get('urlBase')
|
||||
@@ -38,13 +43,15 @@ app.addInitializer(function(){
|
||||
AppLayout.navbarRegion.show(new NavbarLayout());
|
||||
$('body').addClass('started');
|
||||
});
|
||||
app.addInitializer(function(){
|
||||
|
||||
app.addInitializer(function() {
|
||||
var footerText = serverStatusModel.get('version');
|
||||
if(serverStatusModel.get('branch') !== 'master') {
|
||||
if (serverStatusModel.get('branch') !== 'master') {
|
||||
footerText += '</br>' + serverStatusModel.get('branch');
|
||||
}
|
||||
$('#footer-region .version').html(footerText);
|
||||
});
|
||||
|
||||
app.start();
|
||||
|
||||
module.exports = app;
|
||||
|
||||
Reference in New Issue
Block a user