Add button for pihole arpflush on Pi-hole settings page

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-05-30 22:05:13 +02:00
parent 4ed39ff8d2
commit 72abc5dad4
3 changed files with 17 additions and 11 deletions

View File

@@ -82,19 +82,19 @@ $(".confirm-flushlogs").confirm({
dialogClass: "modal-dialog modal-mg"
});
$(".confirm-disablelogging").confirm({
text: "Are you sure you want to disable logging and flush your Pi-hole logs?",
$(".confirm-flusharp").confirm({
text: "Are you sure you want to flush your network table?",
title: "Confirmation required",
confirm(button) {
$("#disablelogsform").submit();
$("#flusharpform").submit();
},
cancel(button) {
// nothing to do
},
confirmButton: "Yes, disable logs and flush my logs",
confirmButton: "Yes, flush my network table",
cancelButton: "No, go back",
post: true,
confirmButtonClass: "btn-danger",
confirmButtonClass: "btn-warning",
cancelButtonClass: "btn-success",
dialogClass: "modal-dialog modal-mg"
});