Skip to content

Commit

Permalink
Merge pull request #106 from SNovy-88/fixFitnessFilter
Browse files Browse the repository at this point in the history
fixed fitness level bug
  • Loading branch information
manuschoenberger authored Jan 19, 2024
2 parents 2a40cae + 1844c3e commit 13cca5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/JS/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ function convertValueToString(type, value) {
case "3":
return "Intermediate";
case "4":
return "Expert";
case "5":
return "Challenging";
case "5":
return "Expert";
default:
return "Choose here";
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/createHike.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="1"> Easy </a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="2"> Moderate </a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="3"> Intermediate </a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="4"> Expert </a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="5"> Challenging </a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="4"> Challenging </a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdown('drop-down-btn-fitness', this)" data-id="5"> Expert </a></li>
</ul>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/searchResultList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="1">Easy</a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="2">Moderate</a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="3">Intermediate</a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="4">Expert</a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="5">Challenging</a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="4">Challenging</a></li>
<li><a class="dropdown-item" href="javascript:void(0)" onclick="updateDropdownExIcons('drop-down-btn-fitness', this)" data-id="5">Expert</a></li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 13cca5a

Please sign in to comment.