equal
deleted
inserted
replaced
15 documentsLoaded: Ember.observer('documents', function() { |
15 documentsLoaded: Ember.observer('documents', function() { |
16 this.get('player').set('items', this.get('documents').map(function(document) { |
16 this.get('player').set('items', this.get('documents').map(function(document) { |
17 return document.get('id'); |
17 return document.get('id'); |
18 })); |
18 })); |
19 if(this.get('player').get('items').length && this.get('player').get('playing') === false) { |
19 if(this.get('player').get('items').length && this.get('player').get('playing') === false) { |
20 this.get('player').set('item', this.get('player').get('items')[0]); |
20 this.get('player').set('item', this.get('player').get('items')[0]); |
21 } |
21 } |
22 }).on('init'), |
22 }).on('init'), |
23 |
23 |
24 playerItemObserver: Ember.observer('player.item', function() { |
24 playerItemObserver: Ember.observer('player.item', function() { |
25 if(this.$() && this.get('player').get('item')) { |
25 if(this.$() && this.get('player').get('item')) { |
69 |
69 |
70 displayTranscript: function() { |
70 displayTranscript: function() { |
71 this.get('player').displayAdditionalInformation('transcript'); |
71 this.get('player').displayAdditionalInformation('transcript'); |
72 }, |
72 }, |
73 |
73 |
74 displayNotice: function(id) { |
74 displayNotice: function() { |
75 if(this.get('player').get('window') !== 'notice') { |
75 if(this.get('player').get('window') !== 'notice') { |
76 this.get('player').displayMetadata('notice'); |
76 this.get('player').displayMetadata('notice'); |
77 } else { |
77 } else { |
78 this.get('player').displayMetadata(false); |
78 this.get('player').displayMetadata(false); |
79 } |
79 } |