diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index 80a7f9a2..ec828d97 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -1,10 +1,10 @@ var table; var groups = []; -const token = $("#token").html(); +var token = $("#token").html(); var info = null; function showAlert(type, icon, title, message) { - let opts = {}; + var opts = {}; title = " " + title + "
"; switch (type) { case "info": @@ -110,7 +110,7 @@ function initTable() { $(".deleteAdlist").on("click", deleteAdlist); }, rowCallback: function(row, data) { - const tooltip = + var tooltip = "Added: " + datetime(data.date_added) + "\nLast modified: " + @@ -121,7 +121,7 @@ function initTable() { '' + data.address + "" ); - const disabled = data.enabled === 0; + var disabled = data.enabled === 0; $("td:eq(1)", row).html( '' + diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index 9b6ca920..658a0722 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -1,10 +1,10 @@ var table; var groups = []; -const token = $("#token").html(); +var token = $("#token").html(); var info = null; function showAlert(type, icon, title, message) { - let opts = {}; + var opts = {}; title = " " + title + "
"; switch (type) { case "info": @@ -136,7 +136,7 @@ function initTable() { $(".deleteClient").on("click", deleteClient); }, rowCallback: function(row, data) { - const tooltip = "Database ID: " + data.id; + var tooltip = "Database ID: " + data.id; var ip_name = '' + diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index 8637a7d7..227722de 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -1,10 +1,10 @@ var table; var groups = []; -const token = $("#token").html(); +var token = $("#token").html(); var info = null; function showAlert(type, icon, title, message) { - let opts = {}; + var opts = {}; title = " " + title + "
"; switch (type) { case "info": @@ -111,7 +111,7 @@ function initTable() { $(".deleteDomain").on("click", deleteDomain); }, rowCallback: function(row, data) { - const tooltip = + var tooltip = "Added: " + datetime(data.date_added) + "\nLast modified: " + @@ -140,7 +140,7 @@ function initTable() { ); $("#type", row).on("change", editDomain); - const disabled = data.enabled === 0; + var disabled = data.enabled === 0; $("td:eq(2)", row).html( '' + diff --git a/scripts/pi-hole/js/groups.js b/scripts/pi-hole/js/groups.js index a39ef02b..6af45d1a 100644 --- a/scripts/pi-hole/js/groups.js +++ b/scripts/pi-hole/js/groups.js @@ -1,9 +1,9 @@ var table; -const token = $("#token").html(); +var token = $("#token").html(); var info = null; function showAlert(type, icon, title, message) { - let opts = {}; + var opts = {}; title = " " + title + "
"; switch (type) { case "info": @@ -84,7 +84,7 @@ $(document).ready(function() { $(".deleteGroup").on("click", deleteGroup); }, rowCallback: function(row, data) { - const tooltip = + var tooltip = "Added: " + datetime(data.date_added) + "\nLast modified: " + @@ -102,7 +102,7 @@ $(document).ready(function() { name.val(data.name); name.on("change", editGroup); - const disabled = data.enabled === 0; + var disabled = data.enabled === 0; $("td:eq(1)", row).html( ''); - const desc = data.description !== null ? data.description : ""; + var desc = data.description !== null ? data.description : ""; $("#desc", row).val(desc); $("#desc", row).on("change", editGroup); $("td:eq(3)", row).empty(); if (data.id !== 0) { - let button = + var button = "  " + '