This commit is contained in:
Tamir Duberstein
2015-07-17 14:35:09 -04:00
parent b5dad7dcb2
commit b3a9cd3a69

View File

@@ -115,7 +115,7 @@
case "s": case "s":
case "S": case "S":
ev.preventDefault(); ev.preventDefault();
$(".search-input").focus(); focusSearchBar()
break; break;
case "?": case "?":
@@ -960,5 +960,5 @@
// Sets the focus on the search bar at the top of the page // Sets the focus on the search bar at the top of the page
function focusSearchBar() { function focusSearchBar() {
document.getElementsByName('search')[0].focus(); $('.search-input').focus();
} }