diff --git a/files/assets/js/header.js b/files/assets/js/header.js index d649c5c4f..b940095a5 100644 --- a/files/assets/js/header.js +++ b/files/assets/js/header.js @@ -38,7 +38,9 @@ function bs_trigger(e) { const popoverTriggerList = [].slice.call(e.querySelectorAll('[data-bs-toggle="popover"]')); popoverTriggerList.map(function(popoverTriggerEl) { const popoverId = popoverTriggerEl.getAttribute('data-content-id'); - const contentEl = e.querySelector(`#${popoverId}`); + let contentEl; + try {contentEl = e.getElementById(popoverId);} + catch(t) {contentEl = e.getElementById(popoverId);} if (contentEl) { return bootstrap.Popover.getOrCreateInstance(popoverTriggerEl, { content: contentEl.innerHTML, diff --git a/files/templates/header.html b/files/templates/header.html index fa3142b80..a81b46109 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -256,7 +256,7 @@ - + {% if v and not err %}
{{v.formkey}}