Get categories from the correct eventCode
authorrougeronj
Fri, 23 Jan 2015 10:46:26 +0100
changeset 136 83a5ab5e2e81
parent 135 d3066fa80a81
child 137 750d9076a4a8
Get categories from the correct eventCode
client/annotviz/app/js/annotsvizview.js
--- a/client/annotviz/app/js/annotsvizview.js	Fri Jan 23 10:09:59 2015 +0100
+++ b/client/annotviz/app/js/annotsvizview.js	Fri Jan 23 10:46:26 2015 +0100
@@ -33,8 +33,7 @@
     this.timeBegin = opts.timeBegin;
     this.timeEnd = opts.timeEnd;
     this.annotCategories = [];
-    
-    Utils.getAnnotCategories(opts.urlCategories, this.annotCategories);
+    this.annotCategoriesDay1 = [];
     
 	var wsPianoroll = opts.wsPianoroll;
 	var wsAnnot = opts.wsAnnot;
@@ -42,10 +41,11 @@
 	var currentTime = Date.now() + 3600*1000;
 	var eventCode = opts.eventCode;
 	var eventCodeSessionDay1 = opts.eventCodeSessionDay1;
-	console.log("OUOAUOAUOAUAOUAOUA");
-	console.log(eventCodeSessionDay1);
     var channel = opts.channel;
     var serverUrl = opts.serverUrl;
+    
+    Utils.getAnnotCategories(opts.urlCategories + eventCode, this.annotCategories);
+    Utils.getAnnotCategories(opts.urlCategories + eventCodeSessionDay1, this.annotCategoriesDay1);
 
 	stageView.registerComponent(this);
 
@@ -85,7 +85,7 @@
         intervalHeight: (timeLineDay2.intervalHeight * (timeLineDay2.radius - timeLineDay2.radius*2/3))/ timeLineDay2.maxCellHeight,
         maxCellHeight: (timeLineDay2.radius - timeLineDay2.radius*2/3)/4,
         radius: timeLineDay2.radius*2/3,
-        annotCategories: this.annotCategories,
+        annotCategories: this.annotCategoriesDay1,
         eventCode: eventCodeSessionDay1,
         channel: channel,
         serverUrl: serverUrl,