Skip to content

Commit

Permalink
Refs #131234 Correctly get classlists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Petchesi-Iulian committed Sep 15, 2021
1 parent 598ae59 commit e5a820a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion copernicus/public/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ function searchModifications() {
});

$(document).click(function(event) {
if ($("#facetview_trees_loader").is(":hidden") == false && !event.target.classList.contains("eea-section-trigger")) {
event_classlist = event.target.classList;
if (event_classlist === undefined) {
event_classlist = event.target[0].classList;
}
if ($("#facetview_trees_loader").is(":hidden") == false && !event_classlist.contains("eea-section-trigger")) {

targets = ["#facetview_trees_loader", ".eea-right-section-active"];

Expand Down

0 comments on commit e5a820a

Please sign in to comment.