fix search highlighting for previous
This commit is contained in:
parent
3f4d5e2522
commit
3c8631c0d7
@ -66,11 +66,11 @@ function toggleMenu() {
|
||||
}
|
||||
|
||||
function highlightLine(no) {
|
||||
var lines = $chatArea.innerHTML.split('<br>');
|
||||
var lines = $chatArea.innerHTML.split("\n");
|
||||
|
||||
lines[no] = '<span class="line-highlighted">' + lines[no] + '</span>';
|
||||
|
||||
$chatArea.innerHTML = lines.join('<br>');
|
||||
$chatArea.innerHTML = lines.join("\n");
|
||||
}
|
||||
|
||||
function onLoad() {
|
||||
|
Loading…
Reference in New Issue
Block a user