Merge pull request #252 from pi-hole/customizeadlists

Manage adlists
This commit is contained in:
Mcat12
2017-04-06 16:16:05 -04:00
committed by GitHub
5 changed files with 137 additions and 2 deletions

View File

@@ -45,9 +45,23 @@ $("#gravityBtn").on("click", function(){
eventsource();
});
$("#gravityBtn").on("click", () => {
$("#gravityBtn").attr("disabled", true);
eventsource();
});
// Handle hiding of alerts
$(function(){
$("[data-hide]").on("click", function(){
$(this).closest("." + $(this).attr("data-hide")).hide();
});
// Do we want to start updating immediately?
// gravity.php?go
var searchString = window.location.search.substring(1);
if(searchString.indexOf("go") !== -1)
{
$("#gravityBtn").attr("disabled", true);
eventsource();
}
});