cms/app-client/app/router.js
changeset 35 9148b2653eb5
parent 16 70e9a764d6d7
child 57 36dc51dd60e9
equal deleted inserted replaced
34:78a7be2ea5db 35:9148b2653eb5
     4 var Router = Ember.Router.extend({
     4 var Router = Ember.Router.extend({
     5   location: config.locationType
     5   location: config.locationType
     6 });
     6 });
     7 
     7 
     8 Router.map(function() {
     8 Router.map(function() {
     9   this.route('visus/visu-langues', { path: '/langues' });
     9   this.route('tabs/langues', { path: '/langues' });
    10   this.route('visus/visu-carto', { path: '/cartographie' });
    10   this.route('tabs/carto', { path: '/cartographie' });
    11   this.route('visus/visu-thematiques', { path: '/thematiques' });
    11   this.route('tabs/thematiques', { path: '/thematiques' });
    12   this.route('visus/visu-discours', { path: '/discours' });
    12   this.route('tabs/discours', { path: '/discours' });
    13   this.route('visus/visu-chrono', { path: '/chronologie' });
    13   this.route('tabs/chrono', { path: '/chronologie' });
       
    14 });
       
    15 
       
    16 Router.reopen({
       
    17   onUrlChange: function() {
       
    18     console.log(this.get('url'));
       
    19   }.observes('currentPath')
    14 });
    20 });
    15 
    21 
    16 export default Router;
    22 export default Router;