Skip to content

Commit 3e7c421

Browse files
Merge pull request #53 from adityasharma7/ROL-2157
Fixed: Variables should be declared explicitly in Custom JS code (ROL-2157)
2 parents 3400441 + a459f6f commit 3e7c421

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/webapp/theme/scripts/searchhi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ function highlightTerm() {
7676
// ensure this only executes when showing search results
7777
if (document.getElementById("searchAgain")) {
7878
var searchTerm = document.getElementById("q").value;
79-
words = unescape(searchTerm.replace(/\+/g,' ')).split(/\s+/);
80-
for (w=0;w<words.length;w++) {
79+
var words = unescape(searchTerm.replace(/\+/g,' ')).split(/\s+/);
80+
for (var w=0;w<words.length;w++) {
8181
highlightWord(document.getElementsByTagName("body")[0],words[w]);
8282
}
8383
}

0 commit comments

Comments
 (0)