Skip to content

Commit bbb8964

Browse files
committed
fix taxon filter list
1 parent be4d904 commit bbb8964

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

atlas/static/listeEspeces.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ $(".lazy").lazy({
66
});
77
$('[data-toggle="tooltip"]').tooltip();
88

9-
var taxonDomElem = Array.from(document.querySelectorAll("#taxonList li"))
109

1110
$(document).ready(function(){
11+
12+
var taxonDomElem = Array.from(document.querySelectorAll("#taxonList li"))
13+
1214
function filterListeEspèces() {
1315
let name = document.querySelector("#taxonInput").value.toLowerCase();
1416
let onlyProtégées = document.querySelector("#filtreProtégées").checked;
@@ -28,4 +30,4 @@ $(document).ready(function(){
2830
document.querySelectorAll("#filtresListeEspèces input").forEach(
2931
(element) => element.addEventListener("input", filterListeEspèces)
3032
)
31-
});
33+
});

atlas/templates/core/listTaxons.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
{% if config.DISPLAY_PATRIMONIALITE %}
3737
<div class="custom-control custom-switch">
3838
<input id="filtrePatrimoniales" name="filtrePatrimoniales" type="checkbox" class="custom-control-input" />
39-
<label for="filtrePatrimoniales" class="custom-control-label">{{ _("espèces.%(label_patrimonialite)s.uniquement", label_patrimonialite=config.PATRIMONIALITE.label_pluriel)|lower }}</label>
39+
<label for="filtrePatrimoniales" class="custom-control-label">{{ _("espèces.%(label_patrimonialite)s.uniquement", label_patrimonialite=config.PATRIMONIALITE.label_pluriel)|lower|capitalize }}</label>
4040
</div>
4141
{% endif %}
4242
</div>

0 commit comments

Comments
 (0)