fix: icons - use textContent insteod of innerHTML to avoid Google translate issues

This commit is contained in:
Azgaar 2024-03-04 21:40:32 +01:00
parent 73b39d217d
commit 1385354adc
4 changed files with 58 additions and 30 deletions

View file

@ -1093,12 +1093,12 @@ function selectIcon(initial, callback) {
input.oninput = e => callback(input.value);
table.onclick = e => {
if (e.target.tagName === "TD") {
input.value = e.target.innerHTML;
input.value = e.target.textContent;
callback(input.value);
}
};
table.onmouseover = e => {
if (e.target.tagName === "TD") tip(`Click to select ${e.target.innerHTML} icon`);
if (e.target.tagName === "TD") tip(`Click to select ${e.target.textContent} icon`);
};
$("#iconSelector").dialog({