Fix bug 565

Bug565-Hui
Lan Hui 2024-09-07 09:03:59 +08:00
parent 12752341db
commit b6a36b1d1a
1 changed files with 7 additions and 1 deletions

View File

@ -60,7 +60,13 @@ function delete_word(theWord) {
removeWord(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);
}
}
});
}