mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
DRY
This commit is contained in:
parent
b5dad7dcb2
commit
b3a9cd3a69
@ -115,7 +115,7 @@
|
||||
case "s":
|
||||
case "S":
|
||||
ev.preventDefault();
|
||||
$(".search-input").focus();
|
||||
focusSearchBar()
|
||||
break;
|
||||
|
||||
case "?":
|
||||
@ -960,5 +960,5 @@
|
||||
|
||||
// Sets the focus on the search bar at the top of the page
|
||||
function focusSearchBar() {
|
||||
document.getElementsByName('search')[0].focus();
|
||||
$('.search-input').focus();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user