cms/app-client/app/router.js
changeset 271 e234339fe8df
parent 261 02e2396bcbbc
child 338 4a3899b6a7ed
equal deleted inserted replaced
270:6ddc52965fb8 271:e234339fe8df
     1 import Ember from 'ember';
     1 import Ember from 'ember';
     2 import config from './config/environment';
     2 import config from './config/environment';
     3 
     3 
     4 const Router = Ember.Router.extend({
     4 const Router = Ember.Router.extend({
       
     5 
     5     location: config.locationType,
     6     location: config.locationType,
     6     rootURL: config.rootURL
     7     rootURL: config.rootURL,
       
     8 
       
     9     player: Ember.inject.service(),
       
    10 
       
    11     didTransition:function() {
       
    12     	this.get('player').toggleVideoscreen(false);
       
    13     	this.get('player').displayMetadata(false);
       
    14     	this._super(...arguments);
       
    15     }
     7 });
    16 });
     8 
    17 
     9 Router.map(function() {
    18 Router.map(function() {
    10     this.route('tabs/langues', { path: '/' }); // Default
    19     this.route('tabs/langues', { path: '/' });
    11     this.route('tabs/langues', { path: '/langues' });
    20     this.route('tabs/langues', { path: '/langues' });
    12     this.route('tabs/carto', { path: '/cartographie' });
    21     this.route('tabs/carto', { path: '/cartographie' });
    13     this.route('tabs/thematiques', { path: '/thematiques' });
    22     this.route('tabs/thematiques', { path: '/thematiques' });
    14     this.route('tabs/discours', { path: '/discours' });
    23     this.route('tabs/discours', { path: '/discours' });
    15     this.route('tabs/chrono', { path: '/chronologie' });
    24     this.route('tabs/chrono', { path: '/chronologie' });