make it possible to specify the time in the range
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user