cms/app-client/app/controllers/application.js
changeset 193 64afd482ac71
parent 192 e1435b37301a
child 194 02c6aa9a99d7
equal deleted inserted replaced
192:e1435b37301a 193:64afd482ac71
    32         Ember.$(".result-item").toggleClass("playing", false);
    32         Ember.$(".result-item").toggleClass("playing", false);
    33         if (this.get('currentId') === null){
    33         if (this.get('currentId') === null){
    34             return null;
    34             return null;
    35         }
    35         }
    36         Ember.$("div[id='" + this.get('currentId') + "']").toggleClass("playing", true);
    36         Ember.$("div[id='" + this.get('currentId') + "']").toggleClass("playing", true);
    37         return this.store.findRecord('document', this.get('currentId'));
    37         return this.store.findRecord('document', this.get('currentId');
    38     }),
    38     }),
    39 
    39 
    40     modalItem: Ember.computed('detail', function() {
    40     modalItem: Ember.computed('detail', function() {
    41         return this.store.findRecord('document', this.get('detail'));
    41         return this.store.findRecord('document', this.get('detail'));
    42     }),
    42     }),