# HG changeset patch # User Chloe Laisne # Date 1472211168 -7200 # Node ID 97c06607949b3e1f0af4a53eda8b3e9dcea64af1 # Parent e234339fe8df3e632b987a9c8f2e080a4c800ea8 Page title when track is playing diff -r e234339fe8df -r 97c06607949b cms/app-client/app/components/player-component.js --- a/cms/app-client/app/components/player-component.js Fri Aug 26 11:42:10 2016 +0200 +++ b/cms/app-client/app/components/player-component.js Fri Aug 26 13:32:48 2016 +0200 @@ -75,10 +75,12 @@ play: function() { this.get('popcorn').play(); + Ember.$(document).attr('title', this.get('player').get('model').get('title') + ' - ' + Ember.$(document).attr('title')); }, pause: function() { this.get('popcorn').pause(); + Ember.$(document).attr('title', Ember.$(document).attr('title').split(' - ').pop()); }, actions: { diff -r e234339fe8df -r 97c06607949b cms/app-client/app/index.html --- a/cms/app-client/app/index.html Fri Aug 26 11:42:10 2016 +0200 +++ b/cms/app-client/app/index.html Fri Aug 26 13:32:48 2016 +0200 @@ -1,7 +1,7 @@ - AppClient + Corpus de la parole