Compare commits
	
		
			2 Commits 
		
	
	
		
			12752341db
			...
			8859827eac
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						8859827eac | |
| 
							
							
								 | 
						b6a36b1d1a | 
| 
						 | 
					@ -60,7 +60,13 @@ function delete_word(theWord) {
 | 
				
			||||||
                removeWord(theWord);
 | 
					                removeWord(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