We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3400441 + a459f6f commit 3e7c421Copy full SHA for 3e7c421
1 file changed
app/src/main/webapp/theme/scripts/searchhi.js
@@ -76,8 +76,8 @@ function highlightTerm() {
76
// ensure this only executes when showing search results
77
if (document.getElementById("searchAgain")) {
78
var searchTerm = document.getElementById("q").value;
79
- words = unescape(searchTerm.replace(/\+/g,' ')).split(/\s+/);
80
- for (w=0;w<words.length;w++) {
+ var words = unescape(searchTerm.replace(/\+/g,' ')).split(/\s+/);
+ for (var w=0;w<words.length;w++) {
81
highlightWord(document.getElementsByTagName("body")[0],words[w]);
82
}
83
0 commit comments