cms/app-client/app/controllers/application.js
changeset 192 e1435b37301a
parent 190 226ae8f2e8e9
child 193 64afd482ac71
equal deleted inserted replaced
191:db5711fbbb6c 192:e1435b37301a
    31     currentItem: Ember.computed('currentId', function() {
    31     currentItem: Ember.computed('currentId', function() {
    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.$("#"+this.get('currentId').replace( /(:|\.|\[|\]|,)/g, "\\$1" )).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'));