timeout to be the same as whatever is set

This commit is contained in:
Promofaux
2017-02-17 22:11:39 +00:00
parent 4bfcb3e750
commit 3037ef7710

View File

@@ -90,7 +90,7 @@ $("#pihole-disable-custom").on("click", function(e){
var custVal = $("#customTimeout").val();
custVal = $("#btnMins").hasClass("active") ? custVal * 60 : custVal;
piholeChange("disable",custVal);
setTimeout(function(){piholeChanged("enabled");},300000);
setTimeout(function(){piholeChanged("enabled");},custVal * 1000);
});
var piholeVersion = $("#piholeVersion").html();