cms/app-client/app/router.js
author ymh <ymh.work@gmail.com>
Wed, 08 Feb 2017 15:25:24 +0100
changeset 502 74fba571487e
parent 456 3a32d2f57429
permissions -rw-r--r--
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
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
136
5fed7e1716c2 upgrade ember and ember cli
ymh <ymh.work@gmail.com>
parents: 98
diff changeset
     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() {
414
5c6c526a7fc1 Display for single notice, preparation for share link
ymh <ymh.work@gmail.com>
parents: 338
diff changeset
    12
        this.get('player').toggleVideoscreen(false);
5c6c526a7fc1 Display for single notice, preparation for share link
ymh <ymh.work@gmail.com>
parents: 338
diff changeset
    13
        this.get('player').displayMetadata(this.get('player').get('window'));
338
4a3899b6a7ed Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player
Chloe Laisne <chloe.laisne@gmail.com>
parents: 271
diff changeset
    14
414
5c6c526a7fc1 Display for single notice, preparation for share link
ymh <ymh.work@gmail.com>
parents: 338
diff changeset
    15
        this._super(...arguments);
271
e234339fe8df Fix display notice error + Hide notice/transcript/video when changing route
Chloe Laisne <chloe.laisne@gmail.com>
parents: 261
diff changeset
    16
    }
338
4a3899b6a7ed Fix notice/transcript display when adding filter from notice, switching from playlist, toolbar, and player
Chloe Laisne <chloe.laisne@gmail.com>
parents: 271
diff changeset
    17
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    18
});
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
Router.map(function() {
414
5c6c526a7fc1 Display for single notice, preparation for share link
ymh <ymh.work@gmail.com>
parents: 338
diff changeset
    21
    this.route('document', { path: '/doc/:doc_id'});
456
3a32d2f57429 ember 2.10
ymh <ymh.work@gmail.com>
parents: 414
diff changeset
    22
    this.route('index', { path: '/' });
259
6af61adbd570 doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents: 219
diff changeset
    23
    this.route('tabs/langues', { path: '/langues' });
6af61adbd570 doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents: 219
diff changeset
    24
    this.route('tabs/carto', { path: '/cartographie' });
6af61adbd570 doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents: 219
diff changeset
    25
    this.route('tabs/thematiques', { path: '/thematiques' });
6af61adbd570 doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents: 219
diff changeset
    26
    this.route('tabs/discours', { path: '/discours' });
6af61adbd570 doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents: 219
diff changeset
    27
    this.route('tabs/chrono', { path: '/chronologie' });
35
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    28
});
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    29
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    30
export default Router;