From 131404dfd741846d304ac2c1d5c4204a1145384b Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Wed, 13 Dec 2023 12:43:41 +0100 Subject: ogcp.js: Remove id part from client bubbles Bubbles depicting clients were previously displaying in the format _. This commit changes that to only display the name --- ogcp/static/js/ogcp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ogcp/static') diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js index 3c53035..5259ea1 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -23,8 +23,9 @@ function showSelectedClient(client_checkbox) { if (client_checkbox.checked) { if (!($('#' + pill_id).length)) { + const client_name = client_checkbox.name.replaceAll(/_\d+$/g, ''); $(container).append('
' + client_checkbox.name + + 'id="'+ pill_id + '">' + client_name + '
' + client_checkbox.value + '
'); show_client_mac(pill_id); } -- cgit v1.2.3-18-g5258