From ff55cf085e4cf298de1e3bbeffd541e165fa7189 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 10 Dec 2016 14:16:49 -0500 Subject: [PATCH] Add button to Gravity page This makes sure that the user doesn't accidentally cause the lists to update because they were curious and clicked the Update Lists link on the sidebar. Also, they can update the lists multiple times, if they so desire. --- gravity.php | 3 ++- js/pihole/gravity.js | 14 +++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gravity.php b/gravity.php index ee606d56..3cb41228 100644 --- a/gravity.php +++ b/gravity.php @@ -16,7 +16,8 @@ Success! -

+
+
 
  {
+    $("#gravityBtn").attr("disabled", true);
+    eventsource();
 });
 
 // Handle hiding of alerts