Fix bug 565 #187
			
				
			
		
		
		
	|  | @ -61,6 +61,12 @@ function delete_word(theWord) { | ||||||
|             } else { |             } else { | ||||||
|                 $("#p_" + theWord).remove(); |                 $("#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); | ||||||
|  | 	    } | ||||||
|         } |         } | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue