Codacy loves a complain

This commit is contained in:
Promofaux
2017-02-17 21:15:10 +00:00
parent ff5cf63aaf
commit e54ad166cb
+2 -2
View File
@@ -87,8 +87,8 @@ $("#pihole-disable-5m").on("click", function(e){
});
$("#pihole-disable-custom").on("click", function(e){
e.preventDefault();
var custVal = $('#customTimeout').val();
custVal = $('#btnMins').hasClass("active") ? custVal * 60 : custVal;
var custVal = $("#customTimeout").val();
custVal = $("#btnMins").hasClass("active") ? custVal * 60 : custVal;
piholeChange("disable",custVal);
setTimeout(function(){piholeChanged("enabled");},300000);
});