diff --git a/resources/scripts/browse.js b/resources/scripts/browse.js index 11fc10e3..993ee6f8 100644 --- a/resources/scripts/browse.js +++ b/resources/scripts/browse.js @@ -59,6 +59,15 @@ document.addEventListener('DOMContentLoaded', function () { facets.submit(); }); }); + + ev.detail.querySelectorAll('pb-combo-box').forEach((select) => { + select.renderFunction = (data, escape) => { + if (data) { + return `
${escape(data.text)} ${escape(data.freq || '')}
`; + } + return ''; + } + }); }); // if there's a combo box, synchronize any changes to it with existing checkboxes