make it possible to specify the time in the range

This commit is contained in:
2017-03-27 19:38:02 +02:00
parent 364997e611
commit 726258020f
5 changed files with 32 additions and 10 deletions

View File

@@ -66,7 +66,7 @@ function renderGroupBy()
};
var error = function(e) {
$('#result-view').text("FAILED: " + JSON.stringify(e));
$('#result-view').text("FAILED: " + JSON.parse(e.responseText).message);
};
@@ -78,7 +78,6 @@ function showLoadingIcon()
$('#result-view').html("<div class='center'><div class='uil-cube-css' style='-webkit-transform:scale(0.41)'><div /><div></div><div></div><div></div></div></div>");
}
function plot(event){
event.preventDefault(); // prevent submit of form which would reload the page
@@ -104,11 +103,10 @@ function plot(event){
$('#result-view').text("No data points found.");
}
else{
$('#result-view').text("FAILED: " + JSON.stringify(e));
$('#result-view').text("FAILED: " + JSON.parse(e.responseText).message);
}
};
postJson("plots", request, success, error);
}

View File

@@ -30,10 +30,10 @@
<input type="number" id="search-limit-value" name="search-limit-value" min="1" max="1000" value="10"/>
<label for="search-date-from">From Date:</label>
<input id="search-date-from" class="input_date" type="date">
<input id="search-date-from" class="input_date" type="text" value="{{oldestValue}}">
<label for="search-date-to">To Date:</label>
<input id="search-date-to" class="input_date" type="date">
<input id="search-date-to" class="input_date" type="text" value="{{latestValue}}">
<button id="search-submit"><i class="fa fa-area-chart"> Plot</i></button>
</div>