diff -r 64afd482ac71 -r 02c6aa9a99d7 cms/app-client/app/components/discourses-component.js --- a/cms/app-client/app/components/discourses-component.js Sun Jun 19 23:58:21 2016 +0200 +++ b/cms/app-client/app/components/discourses-component.js Mon Jun 20 15:55:51 2016 +0200 @@ -54,11 +54,11 @@ .text(function(d) { return d.name; }) .style("text-align", "center") .style("display", function(d) { return d.children ? 'none' : 'inline-block'; }) - .style("width", function() { return $(this).parent().width() > $(this).width() ? $(this).parent().width() + 'px' : ''; }) + .style("width", function() { return Ember.$(this).parent().width() > Ember.$(this).width() ? Ember.$(this).parent().width() + 'px' : ''; }) .style("text-transform", "capitalize") .style("font-size", "15px") - .style("margin-left", function() { return ( $(this).width() > $(this).parent().width() ? - ( $(this).width() / 2 ) + ( $(this).parent().width() / 2 ) : 0 ) + 'px'; }) - .style("margin-top", function() { return $(this).parent().height() / 2 - $(this).height() / 2 + 'px'; }); + .style("margin-left", function() { return ( Ember.$(this).width() > Ember.$(this).parent().width() ? - ( Ember.$(this).width() / 2 ) + ( Ember.$(this).parent().width() / 2 ) : 0 ) + 'px'; }) + .style("margin-top", function() { return Ember.$(this).parent().height() / 2 - Ember.$(this).height() / 2 + 'px'; }); var svg = element.append("svg") .style("width", width + "px")