DRY
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user