Removed all curves at given day
This commit is contained in:
@ -748,7 +748,7 @@ let graphs = (function (){
|
||||
resolution = Math.ceil((timeDelta / container.getBoundingClientRect().width))
|
||||
}
|
||||
|
||||
function jumpToDate(dateTimestampMs, timeValueMs, mode){
|
||||
function jumpToDate(dateTimestampMs, timeValueMs){
|
||||
|
||||
cursorLine(null);
|
||||
|
||||
@ -756,17 +756,11 @@ let graphs = (function (){
|
||||
|
||||
msLeftTimestampGetVars = dateTimestampMs;
|
||||
msLeftTimestampGetGraph = dateTimestampMs;
|
||||
|
||||
if(mode == DatesPopup.TIME){
|
||||
msRightTimestampGetVars = dateTimestampMs + timeValueMs;
|
||||
}
|
||||
else if(mode == DatesPopup.ALL){ // we ignore time
|
||||
msRightTimestampGetVars = dateTimestampMs + 24*60*60*1000 - 1000; // we exclude the very beginning of the next day
|
||||
}
|
||||
|
||||
msRightTimestampGetVars = dateTimestampMs + timeValueMs;
|
||||
msRightTimestampGetGraph = dateTimestampMs + 24*60*60*1000 - 1000;
|
||||
|
||||
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestampGetVars/1000 + "," + msRightTimestampGetVars/1000 + "&all=" +allQueryParameterRepresentation(mode) + "&id="+ clientID).getJSON().then(function(data){
|
||||
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestampGetVars/1000 + "," + msRightTimestampGetVars/1000 + "&id="+ clientID).getJSON().then(function(data){
|
||||
blocks = data.blocks;
|
||||
document.getElementById("device").innerHTML = data.device
|
||||
maxTime = msRightTimestampGetGraph;
|
||||
@ -785,15 +779,6 @@ let graphs = (function (){
|
||||
|
||||
}
|
||||
|
||||
function allQueryParameterRepresentation(mode){
|
||||
if(mode == DatesPopup.ALL){
|
||||
return "True";
|
||||
}
|
||||
else {
|
||||
return "False";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The function called when the viewing window is moved by the mouse.
|
||||
*
|
||||
@ -845,7 +830,7 @@ let graphs = (function (){
|
||||
let msLeftTimestamp = msRightTimestamp - 30*60*1000;
|
||||
cursorLine(null);
|
||||
|
||||
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestamp/1000 + "," + msRightTimestamp/1000 + "&all=False&id="+ clientID).getJSON().then(function(data){
|
||||
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestamp/1000 + "," + msRightTimestamp/1000 + "&id="+ clientID).getJSON().then(function(data){
|
||||
currentMaxTime = msRightTimestamp + 60000;
|
||||
currentMinTime = msLeftTimestamp;
|
||||
|
||||
|
Reference in New Issue
Block a user