author | Chloe Laisne <chloe.laisne@gmail.com> |
Sun, 02 Oct 2016 15:24:56 +0200 | |
changeset 311 | f4327199e8f0 |
parent 271 | e234339fe8df |
child 338 | 4a3899b6a7ed |
permissions | -rw-r--r-- |
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 |
|
136 | 4 |
const Router = Ember.Router.extend({ |
271
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
5 |
|
261
02e2396bcbbc
Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents:
259
diff
changeset
|
6 |
location: config.locationType, |
271
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
7 |
rootURL: config.rootURL, |
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
8 |
|
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
9 |
player: Ember.inject.service(), |
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
10 |
|
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
11 |
didTransition:function() { |
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
12 |
this.get('player').toggleVideoscreen(false); |
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
13 |
this.get('player').displayMetadata(false); |
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
14 |
this._super(...arguments); |
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
15 |
} |
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
16 |
}); |
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
17 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
18 |
Router.map(function() { |
271
e234339fe8df
Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents:
261
diff
changeset
|
19 |
this.route('tabs/langues', { path: '/' }); |
259
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
20 |
this.route('tabs/langues', { path: '/langues' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
21 |
this.route('tabs/carto', { path: '/cartographie' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
22 |
this.route('tabs/thematiques', { path: '/thematiques' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
23 |
this.route('tabs/discours', { path: '/discours' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
24 |
this.route('tabs/chrono', { path: '/chronologie' }); |
35
9148b2653eb5
update the route with new names
nowmad@nowmads-macbook-pro.local
parents:
16
diff
changeset
|
25 |
}); |
9148b2653eb5
update the route with new names
nowmad@nowmads-macbook-pro.local
parents:
16
diff
changeset
|
26 |
|
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
27 |
export default Router; |