--- a/cms/app-client/app/components/discourses-component.js Sat Aug 06 21:27:53 2016 +0700
+++ b/cms/app-client/app/components/discourses-component.js Sat Aug 06 21:29:33 2016 +0700
@@ -13,8 +13,8 @@
didRender: function() {
var self = this;
- var baseURL = env.baseURL.replace(/\/$/,"")+'/api/v1';
-
+ var baseURL = env.rootURL.replace(/\/$/,"")+'/api/v1';
+
d3.json(baseURL + "/discourses", function(discourses) {
var width = self.$().parent().width();
var height = self.$().parent().height() - self.$().siblings().height();
@@ -66,7 +66,7 @@
.on('click', function(d) {
self.get('filter').set('discourse', d.id);
});
-
+
leaf.append("circle")
.attr("r", function(d) { return Math.max(7.5 + d.r * 2, d.r * 2); })
.attr("fill", function(d) { return d.fill; })
@@ -100,5 +100,5 @@
return nodes;
}
-
+
});