Compare commits

...

2 Commits

Author SHA1 Message Date
mrlan 8859827eac Merge pull request 'Fix bug 565' (#187) from Bug565-Hui into Alpha-snapshot20240618
Reviewed-on: #187
2024-09-07 09:04:35 +08:00
Lan Hui b6a36b1d1a Fix bug 565 2024-09-07 09:03:59 +08:00
1 changed files with 7 additions and 1 deletions

View File

@ -61,6 +61,12 @@ function delete_word(theWord) {
} else {
$("#p_" + theWord).remove();
}
// remove highlighting for the word
let highlightedWords = document.querySelectorAll('.highlighted');
for (let x of highlightedWords) {
if (x.innerHTML == word)
x.replaceWith(x.innerHTML);
}
}
});
}