Make changing doc search unhighlight current result

If a result is highlighted, when the search changes that state should no
longer be highlighted. Fixes #24044

cc @steveklabnik
This commit is contained in:
Earl St Sauver 2015-04-04 15:21:18 +07:00
parent bcae782aa8
commit 1b1d910cd7
1 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,8 @@
if ($active.length) {
document.location.href = $active.find('a').prop('href');
}
} else {
$active.removeClass('highlighted');
}
});
}