autofocus first term of autocomplete for convenience

This commit is contained in:
Toks
2013-06-19 22:23:22 -04:00
parent ba539b0e18
commit 62a3391c04
4 changed files with 4 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
if (Danbooru.meta("enable-auto-complete") === "true") {
$("#quick_search_title,#wiki_page_title").autocomplete({
minLength: 1,
autoFocus: true,
source: function(req, resp) {
$.ajax({
url: "/wiki_pages.json",