javascript

This commit is contained in:
Promofaux
2017-02-17 20:46:43 +00:00
parent 84c2eb921e
commit 5076de084b

View File

@@ -85,6 +85,13 @@ $("#pihole-disable-5m").on("click", function(e){
piholeChange("disable","300");
setTimeout(function(){piholeChanged("enabled");},300000);
});
$("#pihole-disable-custom").on("click", function(e){
e.preventDefault();
var custVal = $('#customTimeout').val();
custVal = $('#btnMins').hasClass("active") ? custVal * 60 : custVal;
piholeChange("disable",custVal);
setTimeout(function(){piholeChanged("enabled");},300000);
});
var piholeVersion = $("#piholeVersion").html();
var webVersion = $("#webVersion").html();