# HG changeset patch # User Chloe Laisne # Date 1465981820 -7200 # Node ID e1435b37301a3e9528f86eea90656532ceb5263a # Parent db5711fbbb6c09f66c77667e7d28af8e3d53d9e3 Play error quickfix Remove player partial diff -r db5711fbbb6c -r e1435b37301a cms/app-client/app/components/player-component.js --- a/cms/app-client/app/components/player-component.js Wed Jun 15 09:50:56 2016 +0200 +++ b/cms/app-client/app/components/player-component.js Wed Jun 15 11:10:20 2016 +0200 @@ -95,7 +95,6 @@ var radians = Math.atan2(x - button_centerX, y - button_centerY); var degree = Math.round( (radians * (180 / Math.PI) * -1) + 180 ); return degree; - //return (degree <= max ? degree : max); }, play: function(){ diff -r db5711fbbb6c -r e1435b37301a cms/app-client/app/controllers/application.js --- a/cms/app-client/app/controllers/application.js Wed Jun 15 09:50:56 2016 +0200 +++ b/cms/app-client/app/controllers/application.js Wed Jun 15 11:10:20 2016 +0200 @@ -33,7 +33,7 @@ if (this.get('currentId') === null){ return null; } - Ember.$("#"+this.get('currentId').replace( /(:|\.|\[|\]|,)/g, "\\$1" )).toggleClass("playing", true); + Ember.$("div[id='" + this.get('currentId') + "']").toggleClass("playing", true); return this.store.findRecord('document', this.get('currentId')); }), diff -r db5711fbbb6c -r e1435b37301a cms/app-client/app/templates/application.hbs --- a/cms/app-client/app/templates/application.hbs Wed Jun 15 09:50:56 2016 +0200 +++ b/cms/app-client/app/templates/application.hbs Wed Jun 15 11:10:20 2016 +0200 @@ -5,7 +5,11 @@
- {{partial "player"}} +
+ {{player-component action="changeDocument" document=currentItem}} +

{{ currentItem.title }}

+

{{doc-language url=currentItem.language}}

+
{{partial "results"}}