Rollup merge of #27094 - tamird:DRY-search-focus, r=brson
Following up on comment from #26977. r? @brson
This commit is contained in:
commit
fdc39cd50d
@ -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