diff --git a/apps/templates/pages/labs_edit.html b/apps/templates/pages/labs_edit.html index ea8be96..15299ba 100644 --- a/apps/templates/pages/labs_edit.html +++ b/apps/templates/pages/labs_edit.html @@ -880,8 +880,26 @@
const htmlLabGuide = marked.parse(editorLabGuide.getValue()); document.getElementById('custom-tabs-labguide-preview').innerHTML = htmlLabGuide; var seenNames = {}; + var seenIds = {}; var duplicates = []; + var duplicateIds = []; $('#custom-tabs-labguide-preview').find(':input').each(function () { + // Every input id must be unique. radio/checkbox options repeat their + // name (they form a single group) but each option still needs its own + // id, otherwise the