Skip to content

Commit 6d52ba7

Browse files
committed
Merge remote-tracking branch 'origin/fix_select_specie' into recette
2 parents de15d81 + a84f6e1 commit 6d52ba7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

atlas/static/mapAreas.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,8 @@ function displayObsTaxonMaille(areaCode, cd_ref) {
157157
}
158158

159159
function refreshObsArea(elem) {
160-
$(this)
161-
.siblings()
162-
.removeClass("current");
163-
$(this).addClass("current");
160+
document.querySelector("#taxonList .current")?.classList.remove("current")
161+
elem.currentTarget.classList.add("current")
164162
if (configuration.AFFICHAGE_MAILLE) {
165163
displayObsTaxonMaille(elem.currentTarget.getAttribute("area-code"), elem.currentTarget.getAttribute("cdref"));
166164
} else {

0 commit comments

Comments
 (0)