diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-15 15:10:22 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-27 09:48:36 +0200 |
commit | 49db9dc7793e838dd591c5f27eb478656e6d96dc (patch) | |
tree | cc8c65ed93a4782f4c408ecac37acf005a6b6ff7 /ogcp/static | |
parent | 5af589a94dc96fa8981d008141c71bdd0cdffe4a (diff) |
Replace parentheses in pills ids
From MDN:
Technically, the value for an id attribute may contain any character,
except whitespace characters. However, to avoid inadvertent errors, only
ASCII letters, digits, '_', and '-' should be used and the value for an
id attribute should start with a letter.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
Diffstat (limited to 'ogcp/static')
-rw-r--r-- | ogcp/static/js/ogcp.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js index ac796b1..977f5a7 100644 --- a/ogcp/static/js/ogcp.js +++ b/ogcp/static/js/ogcp.js @@ -19,7 +19,7 @@ async function show_client_mac(pill_id) { function showSelectedClient(client_checkbox) { const container = $('#selected-clients'); - const pill_id = 'pill-' + client_checkbox.name.replaceAll(/[.]|[ ]/g, '_'); + const pill_id = 'pill-' + client_checkbox.name.replaceAll(/[. ()]/g, '_'); if (client_checkbox.checked) { if (!($('#' + pill_id).length)) { |