cms/app-client/app/components/playlist-component.js
changeset 251 ac320de33ec7
parent 249 e4204b1a579a
child 252 ba4fd614582a
equal deleted inserted replaced
250:296c7d34d2ba 251:ac320de33ec7
    62             this.get('player').pause();
    62             this.get('player').pause();
    63         },
    63         },
    64 
    64 
    65         displayNotice: function(id) {
    65         displayNotice: function(id) {
    66             if(this.get('player').get('item') === id) {
    66             if(this.get('player').get('item') === id) {
    67                 if(this.get('player').get('window') !== 'notice') {
    67                 this.get('player').display('notice');
    68                     this.get('player').set('window', 'notice');
       
    69                 } else {
       
    70                     this.get('player').set('window', '');
       
    71                 }
       
    72             } else {
    68             } else {
    73                 if(this.get('notice') !== id) {
    69                 if(this.get('notice') !== id) {
    74                     this.set('notice', id);
    70                     this.set('notice', id);
    75                 } else {
    71                 } else {
    76                     this.set('notice', null);
    72                     this.set('notice', null);