cms/app-client/app/controllers/application.js
changeset 212 f2c6080a73aa
parent 209 35cb7200bb0a
child 219 3578846b66f4
equal deleted inserted replaced
211:7451203a1321 212:f2c6080a73aa
    92 
    92 
    93     modalItem: Ember.computed('detail', function() {
    93     modalItem: Ember.computed('detail', function() {
    94         return this.store.findRecord('document', this.get('detail'));
    94         return this.store.findRecord('document', this.get('detail'));
    95     }),
    95     }),
    96 
    96 
    97     itemIdObserver: Ember.observer('player.itemId', function() {
    97     itemIdObserver: Ember.observer('player.item', function() {
    98         var self = this;
    98         var self = this;
    99         this.store.findRecord('document', this.get('player').get('itemId'), { reload: true }).then(function(it){
    99         this.store.findRecord('document', this.get('player').get('item'), { reload: true }).then(function(it){
   100             self.get('player').set('item', it);
   100             self.get('player').set('model', it);
   101         });
   101         });
   102     }),
   102     }),
   103 
   103 
   104     init: function() {
   104     init: function() {
   105         this._super(...arguments);
   105         this._super(...arguments);