align with the spec: no implicit ids (#808)

Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
This commit is contained in:
Gergely Mészáros, Ph.D 2022-05-17 09:19:49 +02:00 committed by GitHub
parent bcc1555395
commit 58737b0244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,10 +202,10 @@ function showMapTooltip(point, e, i, g) {
const province = pack.cells.province[i];
const prov = province ? pack.provinces[province].fullName + ", " : "";
tip(prov + stateName);
if (statesEditor?.offsetParent) highlightEditorLine(statesEditor, state);
if (diplomacyEditor?.offsetParent) highlightEditorLine(diplomacyEditor, state);
if (militaryOverview?.offsetParent) highlightEditorLine(militaryOverview, state);
if (provincesEditor?.offsetParent) highlightEditorLine(provincesEditor, province);
if (document.getElementById('statesEditor')?.offsetParent) highlightEditorLine(statesEditor, state);
if (document.getElementById('diplomacyEditor')?.offsetParent) highlightEditorLine(diplomacyEditor, state);
if (document.getElementById('militaryOverview')?.offsetParent) highlightEditorLine(militaryOverview, state);
if (document.getElementById('provincesEditor')?.offsetParent) highlightEditorLine(provincesEditor, province);
} else if (layerIsOn("toggleCultures") && pack.cells.culture[i]) {
const culture = pack.cells.culture[i];
tip("Culture: " + pack.cultures[culture].name);