We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de15d81 + a84f6e1 commit 6d52ba7Copy full SHA for 6d52ba7
atlas/static/mapAreas.js
@@ -157,10 +157,8 @@ function displayObsTaxonMaille(areaCode, cd_ref) {
157
}
158
159
function refreshObsArea(elem) {
160
- $(this)
161
- .siblings()
162
- .removeClass("current");
163
- $(this).addClass("current");
+ document.querySelector("#taxonList .current")?.classList.remove("current")
+ elem.currentTarget.classList.add("current")
164
if (configuration.AFFICHAGE_MAILLE) {
165
displayObsTaxonMaille(elem.currentTarget.getAttribute("area-code"), elem.currentTarget.getAttribute("cdref"));
166
} else {
0 commit comments