cms/app-client/app/components/player-component.js
changeset 272 97c06607949b
parent 264 e0fc9f698b9b
child 302 973df1349591
equal deleted inserted replaced
271:e234339fe8df 272:97c06607949b
    73         this.set('remaining', duration - progress);
    73         this.set('remaining', duration - progress);
    74     },
    74     },
    75 
    75 
    76     play: function() {
    76     play: function() {
    77         this.get('popcorn').play();
    77         this.get('popcorn').play();
       
    78         Ember.$(document).attr('title', this.get('player').get('model').get('title') + ' - ' + Ember.$(document).attr('title'));
    78     },
    79     },
    79 
    80 
    80     pause: function() {
    81     pause: function() {
    81         this.get('popcorn').pause();
    82         this.get('popcorn').pause();
       
    83         Ember.$(document).attr('title', Ember.$(document).attr('title').split(' - ').pop());
    82     },
    84     },
    83 
    85 
    84     actions: {
    86     actions: {
    85 
    87 
    86         toggle: function() {
    88         toggle: function() {