Rollup merge of #27094 - tamird:DRY-search-focus, r=brson

Following up on comment from #26977.

r? @brson
This commit is contained in:
Manish Goregaokar 2015-07-18 08:13:16 +05:30
commit fdc39cd50d

View File

@ -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();
}