Skip to content

Commit

Permalink
Remove single quote from card name
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhou committed Oct 10, 2022
1 parent 00e8f27 commit fe9fcf6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
13 changes: 8 additions & 5 deletions templates/component_cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ <h6 class="card-subtitle mb-2 text-muted"></h6>
</div>
</div>

<div data-name="Demonstration Project - Children's Hospital of Philadelphia">
<!-- Remove single quote from data-name to ensure parsing match -->
<div data-name="Demonstration Project - Childrens Hospital of Philadelphia">
<div class="card">
<div class="card-body">
<h5 class="card-title">Demonstration Project - Children's Hospital of Philadelphia</h5>
Expand All @@ -45,8 +46,8 @@ <h6 class="card-subtitle mb-2 text-muted"></h6>
</div>
</div>


<div data-name="Demonstration Project - Lurie Children's">
<!-- Remove single quote from data-name to ensure parsing match -->
<div data-name="Demonstration Project - Lurie Childrens">
<div class="card">
<div class="card-body">
<h5 class="card-title">Demonstration Project - Lurie Children's</h5>
Expand Down Expand Up @@ -256,7 +257,8 @@ <h6 class="card-subtitle mb-2 text-muted">Tissue Mapping Center</h6>
</div>
</div>

<div data-name="TMC - Children's Hospital of Philadelphia">
<!-- Remove single quote from data-name to ensure parsing match -->
<div data-name="TMC - Childrens Hospital of Philadelphia">
<div class="card">
<div class="card-body">
<h5 class="card-title">TMC - Children's Hospital of Philadelphia</h5>
Expand All @@ -272,7 +274,8 @@ <h6 class="card-subtitle mb-2 text-muted">Tissue Mapping Center</h6>
</div>


<div data-name="TMC - Children's Hospital of Philadelphia Heart">
<!-- Remove single quote from data-name to ensure parsing match -->
<div data-name="TMC - Childrens Hospital of Philadelphia Heart">
<div class="card">
<div class="card-body">
<h5 class="card-title">TMC - Children's Hospital of Philadelphia Heart</h5>
Expand Down
4 changes: 4 additions & 0 deletions templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ <h1>HuBMAP User Profile Update</h1>

$("#id_component").change(function() {
let id = $(this).children("option:selected").val();

// Remove the single quote
id = id.replaceAll("'", "");

// All cards are hidden by default
if (id === '----') {
$("#active_card").html('');
Expand Down
4 changes: 4 additions & 0 deletions templates/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ <h1>HuBMAP New User Registration</h1>

$("#id_component").change(function() {
let id = $(this).children("option:selected").val();

// Remove the single quote
id = id.replaceAll("'", "");

// All cards are hidden by default
if (id === '----') {
$("#active_card").html('');
Expand Down

0 comments on commit fe9fcf6

Please sign in to comment.