Skip to content

Commit

Permalink
Merge pull request #1411 from Artsdatabanken/bugfix/collidingFilters
Browse files Browse the repository at this point in the history
Bugfix/colliding filters
  • Loading branch information
AneMarlene authored May 15, 2024
2 parents 15944c7 + 6624af8 commit 4ebba88
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,13 @@
<input id="@id" type="checkbox" class="@className" name=@name value="@value" @(elements.Contains(value) ? " checked=checked" : String.Empty)>
}

void InputTag(string name, string[] elements, string value)
{
InputTag(value, "submitOnclick", name, elements, value);
}

void MakeCheckBoxLi(string value, string label, string name, string[] model, string labelClassName, string inputClassName)
{
string id = value.Replace(" ", "_");
<li class="checkbox">
<label for="@id" class="@labelClassName">
<label for="@(id + name)" class="@labelClassName">
@{
InputTag(value, $"{inputClassName} submitOnclick", name, model, value);
InputTag(id + name, $"{inputClassName} submitOnclick", name, model, value);
}
<span class="label_text">@label</span>
</label>
Expand Down

0 comments on commit 4ebba88

Please sign in to comment.