Skip to content
Snippets Groups Projects
Commit 1cbb244c authored by Geoffrey Spear's avatar Geoffrey Spear Committed by Demian Katz
Browse files

remove id attributes from copied template

A block of HTML is copied to make a template; some of the id elements were being
removed, but 2 were left on causing Lighthouse to complain about
duplicate ids.
parent 0cd5b003
No related merge requests found
...@@ -4,10 +4,12 @@ $(document).ready(function() { ...@@ -4,10 +4,12 @@ $(document).ready(function() {
$('#groupPlaceHolder').removeClass('hidden'); $('#groupPlaceHolder').removeClass('hidden');
$('#new_search_template').addClass('hidden').detach().appendTo('[role="main"]'); $('#new_search_template').addClass('hidden').detach().appendTo('[role="main"]');
$('#new_search_template').find('.adv-search').removeAttr('id'); $('#new_search_template').find('.adv-search').removeAttr('id');
$('#new_search_template').find('.form-control').removeAttr('id');
$('#new_search_template').find('input').removeAttr('value'); $('#new_search_template').find('input').removeAttr('value');
$('#new_search_template').find('option').removeAttr('selected'); $('#new_search_template').find('option').removeAttr('selected');
$('#new_group_template').addClass('hidden').detach().appendTo('[role="main"]'); $('#new_group_template').addClass('hidden').detach().appendTo('[role="main"]');
$('#new_group_template').find('.adv-group').removeAttr('id'); $('#new_group_template').find('.adv-group').removeAttr('id');
$('#new_group_template').find('.form-control').removeAttr('id');
$('#new_group_template .adv-search').remove(); $('#new_group_template .adv-search').remove();
$('#advSearchForm .no-js').remove(); $('#advSearchForm .no-js').remove();
// Build page // Build page
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment