mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Allows reloading the queries after modifying the options.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user