From c3b78e8ef6c2283ceda2ee86c21ae0d4d30f0107 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 3 Dec 2016 14:18:08 -0500 Subject: [PATCH] Change strings to doublequote --- js/pihole/footer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/pihole/footer.js b/js/pihole/footer.js index 9c4471e1..aab07d76 100644 --- a/js/pihole/footer.js +++ b/js/pihole/footer.js @@ -16,17 +16,17 @@ $("#flip-status").on("click", () => { switch(btnStatus.text().trim()) { case "Enable": $.getJSON("api.php?enable", (data) => { - if(data.status == "enabled") { - btnStatus.html(' Disable'); - status.html(' Active'); + if(data.status === "enabled") { + btnStatus.html(" Disable"); + status.html(" Active"); } }); break; case "Disable": $.getJSON("api.php?disable", (data) => { - if(data.status == "disabled") { - btnStatus.html(' Enable'); - status.html(' Offline'); + if(data.status === "disabled") { + btnStatus.html(" Enable"); + status.html(" Offline"); } }); break;