1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 22:57:58 +01:00

fixed display of active hint

This commit is contained in:
Martin Stubenschrott
2007-11-03 18:12:47 +00:00
parent 4c0b9967ac
commit d600e6744b

View File

@@ -314,12 +314,12 @@ outer:
hints[i][3] = imgspan;
doc.body.appendChild(imgspan);
}
imgspan.style.backgroundColor = (activeHint == i + 1) ? "#88FF00" : "yellow";
imgspan.style.backgroundColor = (activeHint == hintnum) ? "#88FF00" : "yellow";
imgspan.style.display = "inline";
}
if (!imgspan)
elem.style.backgroundColor = (activeHint == i + 1) ? "#88FF00" : "yellow";
elem.style.backgroundColor = (activeHint == hintnum) ? "#88FF00" : "yellow";
elem.style.color = "black";
span.textContent = "" + (hintnum++);
span.style.display = "inline";