Allows reloading the queries after modifying the options.

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
This commit is contained in:
rdwebdesign
2021-11-05 19:54:02 -03:00
parent c0cd21f0b5
commit 8bce551012
3 changed files with 28 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ var instantquery = false;
var daterange;
var timeoutWarning = $("#timeoutWarning");
var reloadBox = $(".reload-box");
var dateformat = "MMMM Do YYYY, HH:mm";
@@ -148,6 +149,7 @@ function getQueryTypes() {
var reloadCallback = function () {
timeoutWarning.hide();
reloadBox.hide();
statistics = [0, 0, 0, 0];
var data = tableApi.rows().data();
for (var i = 0; i < data.length; i++) {
@@ -380,3 +382,11 @@ $("#querytime").on("apply.daterangepicker", function (ev, picker) {
$(this).val(picker.startDate.format(dateformat) + " to " + picker.endDate.format(dateformat));
refreshTableData();
});
$("input[id^=type]").change(function (){
reloadBox.show();
});
$(".bt-reload").click(function (){
refreshTableData();
});