From a83626e99b33a0f3adffdb7c6cb2bdc1d9a02b85 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 16 Feb 2020 16:45:23 +0100 Subject: [PATCH] Add class "breakall" also to the code fields in the other tables. Signed-off-by: DL6ER --- scripts/pi-hole/js/groups-adlists.js | 2 +- scripts/pi-hole/js/groups-clients.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index f16e1bc5..357881e4 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -62,7 +62,7 @@ function initTable() { "\nDatabase ID: " + data.id; $("td:eq(0)", row).html( - '' + data.address + "" + '' + data.address + "" ); var disabled = data.enabled === 0; diff --git a/scripts/pi-hole/js/groups-clients.js b/scripts/pi-hole/js/groups-clients.js index 71e0e585..edfa692a 100644 --- a/scripts/pi-hole/js/groups-clients.js +++ b/scripts/pi-hole/js/groups-clients.js @@ -91,13 +91,17 @@ function initTable() { var ip_name = '' + + '" class="breakall">' + data.ip + ''; - if (data.name !== null && data.name.length > 0) - ip_name += '
' + data.name + ""; + + if (data.name !== null && data.name.length > 0) { + ip_name += + '
' + data.name + ""; + } + $("td:eq(0)", row).html(ip_name); $("td:eq(1)", row).empty();