Commit d42a60be authored by Marc Duez's avatar Marc Duez
parents 4d6943ab ef8caaac
......@@ -283,6 +283,7 @@
<input type="checkbox" onclick=" this.checked ? $('#fps').css('display', '') : $('#fps').css('display', 'none');">display fps</input></br>
<input type="checkbox" onclick=" this.checked ? myConsole.openLog() : myConsole.closeLog() ;">log</input>
<a class="buttonSelector" onclick="db.call('default/user/register')">register new user</a>
<div class="buttonSelector" onclick="m.changeTimeFormat('delta_date_no_zero', true)"><input type="radio" name="time" value="delta_date_no_zero">day after first sample (no zero)</input></div>
</div></div>
</div>
......
......@@ -1455,11 +1455,16 @@ Model.prototype = {
break;
case "delta_date":
case "delta_date_no_zero":
if ((typeof this.samples.timestamp != 'undefined') && this.samples.timestamp[0]){
var time0 = this.samples.timestamp[0];
if (timeID == '0'){
result = time0.split(" ")[0];
if (format == "delta_date_no_zero")
result = "";
break;
}else{
if ((typeof this.samples.timestamp != 'undefined') && this.samples.timestamp[timeID]){
......
......@@ -73,7 +73,7 @@ PDF.prototype = {
this.y = this.marge;
this.m.focusOut()
var opt_graph = {"x" : 10,
var opt_graph = {"x" : 20,
"y" : 5,
"w" : 277,
"h" : 170,
......@@ -83,10 +83,10 @@ PDF.prototype = {
this.init()
.graph(opt_graph)
.label_selected_clones(200,170)
.label_selected_clones(150,170)
this.doc.setFontSize(20);
this.doc.text(this.marge + 10, 190, this.m.getPrintableAnalysisName());
//this.doc.text(this.marge + 10, 190, this.m.getPrintableAnalysisName());
this.print()
return this;
......@@ -455,7 +455,7 @@ PDF.prototype = {
label_clone: function (cloneID, x, y) {
this.doc.setFillColor(255, 255, 255);
this.doc.rect(x, y, 90, 8, 'F');
this.doc.rect(x, y, 150, 8, 'F');
this.icon(cloneID, x, y, 18, 8)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment