Fixed date inputs after jump for export popup
This commit is contained in:
@ -51,6 +51,7 @@ class ExportPopup extends HTMLElement{
|
|||||||
|
|
||||||
let exportTypeDate = this.getElementsByClassName(`export-${type}-date`)[0];
|
let exportTypeDate = this.getElementsByClassName(`export-${type}-date`)[0];
|
||||||
exportTypeDate.valueAsNumber = timestamp;
|
exportTypeDate.valueAsNumber = timestamp;
|
||||||
|
exportTypeDate.valueAsDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())) // date input uses UTC
|
||||||
let exportTypeTime = this.getElementsByClassName(`export-${type}-time`)[0];
|
let exportTypeTime = this.getElementsByClassName(`export-${type}-time`)[0];
|
||||||
exportTypeTime.valueAsDate = time;
|
exportTypeTime.valueAsDate = time;
|
||||||
|
|
||||||
|
@ -796,7 +796,7 @@ let graphs = (function (){
|
|||||||
msLeftTimestampGetGraph = dateTimestampMs;
|
msLeftTimestampGetGraph = dateTimestampMs;
|
||||||
|
|
||||||
msRightTimestampGetVars = dateTimestampMs + timeValueMs;
|
msRightTimestampGetVars = dateTimestampMs + timeValueMs;
|
||||||
msRightTimestampGetGraph = dateTimestampMs + 24*60*60*1000 - 1000;
|
msRightTimestampGetGraph = dateTimestampMs + 24*60*60*1000;
|
||||||
|
|
||||||
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestampGetVars/1000 + "," + msRightTimestampGetVars/1000 + "&id="+ clientID).getJSON().then(function(data){
|
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestampGetVars/1000 + "," + msRightTimestampGetVars/1000 + "&id="+ clientID).getJSON().then(function(data){
|
||||||
blocks = data.blocks;
|
blocks = data.blocks;
|
||||||
@ -804,7 +804,7 @@ let graphs = (function (){
|
|||||||
maxTime = msRightTimestampGetGraph;
|
maxTime = msRightTimestampGetGraph;
|
||||||
minTime = msLeftTimestampGetGraph;
|
minTime = msLeftTimestampGetGraph;
|
||||||
|
|
||||||
currentMaxTime = maxTime + 60000;
|
currentMaxTime = maxTime;
|
||||||
currentMinTime = minTime;
|
currentMinTime = minTime;
|
||||||
|
|
||||||
globalIndicators.getIndicatorsMap()[datesKey].update(currentMinTime);
|
globalIndicators.getIndicatorsMap()[datesKey].update(currentMinTime);
|
||||||
|
Reference in New Issue
Block a user