fix: religions and cultures are not highlightable from editor

This commit is contained in:
Azgaar 2022-06-08 21:12:31 +03:00
parent 9215a01548
commit 182c6d558d
6 changed files with 30 additions and 26 deletions

View file

@ -303,10 +303,10 @@ function statesEditorAddLines() {
byId("statesFooterPopulation").dataset.population = totalPopulation;
// add listeners
$body.querySelectorAll("div.states").forEach(el => {
el.on("click", selectStateOnLineClick);
el.on("mouseenter", stateHighlightOn);
el.on("mouseleave", stateHighlightOff);
$body.querySelectorAll(":scope > div").forEach($line => {
$line.on("mouseenter", stateHighlightOn);
$line.on("mouseleave", stateHighlightOff);
$line.on("click", selectStateOnLineClick);
});
if ($body.dataset.type === "percentage") {