Commit 89d75164 authored by alexandre's avatar alexandre

Change document title on route

parent 2ac9175e
......@@ -8,6 +8,8 @@ window.W = window.W || {};
W.ScoreController = Marionette.MnObject.extend({
home: function () {
document.title = 'Organon';
var baseView = this.getOption('application').getView();
var view = new W.HomeView();
baseView.showChildView('main', view);
......@@ -17,6 +19,8 @@ window.W = window.W || {};
about: function () {
document.title = 'Organon: La notation W';
var baseView = this.getOption('application').getView();
var view = new W.AboutView();
baseView.showChildView('main', view);
......@@ -25,6 +29,8 @@ window.W = window.W || {};
userList: function () {
document.title = 'Organon: liste des utilisateurs';
var baseView = this.getOption('application').getView();
var view = new W.UserListView();
baseView.showChildView('main', view);
......@@ -34,6 +40,8 @@ window.W = window.W || {};
userDetail: function () {
document.title = 'Organon: liste des partitions de l\'utilisateur';
var baseView = this.getOption('application').getView();
var view = new W.UserDetailView();
baseView.showChildView('main', view);
......@@ -43,6 +51,8 @@ window.W = window.W || {};
scoreList: function () {
document.title = 'Organon: liste des partitions';
var baseView = this.getOption('application').getView();
var view = new W.ScoreListView();
baseView.showChildView('main', view);
......@@ -53,6 +63,8 @@ window.W = window.W || {};
scoreDetail: function (id) {
document.title = 'Organon: partition';
var baseView = this.getOption('application').getView();
// Backbone relational refuse to instantiate more than one model
......
......@@ -1712,7 +1712,6 @@ window.W = window.W || {};
this.trigger('form:submit', data);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment