cms/app-client/app/components/discourses-component.js
changeset 261 02e2396bcbbc
parent 216 c174124d1849
child 265 5995d360e6ac
--- 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;
     }
-    
+
 });