Skip to content

Commit 184d855

Browse files
committed
improve focus setting
1 parent 70fceb5 commit 184d855

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

template/footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<script type="text/javascript" src="/js/search.js?v=3"></script>
2727
<script type="text/javascript">
2828
$(document).ready(function() {
29-
$('query').focus();
29+
if (!location.hash || location.hash === "#___top") {
30+
$('query').focus();
31+
}
3032
});
3133
</script>

0 commit comments

Comments
 (0)