cms/app-client/app/router.js
author nowmad@23.1.168.192.in-addr.arpa
Thu, 21 Jan 2016 21:07:02 +0100
changeset 94 62984937a062
parent 91 acfeddc7821d
child 98 2e6bfce6f99c
permissions -rw-r--r--
- add params when modal appear so we can come back right on this document modal - load the complete document info when modal is called or when played
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     1
import Ember from 'ember';
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     2
import config from './config/environment';
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     3
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     4
var Router = Ember.Router.extend({
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     5
  location: config.locationType
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     6
});
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     7
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     8
Router.map(function() {
35
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
     9
  this.route('tabs/langues', { path: '/langues' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    10
  this.route('tabs/carto', { path: '/cartographie' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    11
  this.route('tabs/thematiques', { path: '/thematiques' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    12
  this.route('tabs/discours', { path: '/discours' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    13
  this.route('tabs/chrono', { path: '/chronologie' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    14
});
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    15
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    16
Router.reopen({
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    17
  onUrlChange: function() {
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    18
  }.observes('currentPath')
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    19
});
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    20
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    21
export default Router;