cms/app-client/app/controllers/application.js
changeset 212 f2c6080a73aa
parent 209 35cb7200bb0a
child 219 3578846b66f4
--- a/cms/app-client/app/controllers/application.js	Tue Jun 28 23:36:40 2016 +0200
+++ b/cms/app-client/app/controllers/application.js	Wed Jun 29 00:35:03 2016 +0200
@@ -94,10 +94,10 @@
         return this.store.findRecord('document', this.get('detail'));
     }),
 
-    itemIdObserver: Ember.observer('player.itemId', function() {
+    itemIdObserver: Ember.observer('player.item', function() {
         var self = this;
-        this.store.findRecord('document', this.get('player').get('itemId'), { reload: true }).then(function(it){
-            self.get('player').set('item', it);
+        this.store.findRecord('document', this.get('player').get('item'), { reload: true }).then(function(it){
+            self.get('player').set('model', it);
         });
     }),