client/annotviz/app/js/annotsvizview.js
changeset 113 7531e4180915
parent 110 e4f0c105090d
child 121 df6b39f962bc
--- a/client/annotviz/app/js/annotsvizview.js	Thu Jan 22 09:29:49 2015 +0100
+++ b/client/annotviz/app/js/annotsvizview.js	Thu Jan 22 10:01:59 2015 +0100
@@ -47,6 +47,8 @@
 	this.width = opts.width;
 	this.height= opts.height;
     this.annotCategories = opts.annotCategories;
+    this.timeBegin = opts.timeBegin;
+    this.timeEnd = opts.timeEnd;
 
 	var wsPianoroll = opts.wsPianoroll;
 	var wsAnnot = opts.wsAnnot;
@@ -62,8 +64,8 @@
         yInit: 0,
         width: 1024 - 200 - 200,
         height: 768-200,
-        timeBegin: Date.now(),
-        timeEnd: Date.now() + 3000000,
+        timeBegin: this.timeBegin,
+        timeEnd: this.timeEnd,
         intervalWidth: 6,
         intervalHeight: 10,
         maxCellHeight: 70,