autofocus first term of autocomplete for convenience
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
Danbooru.Artist.initialize_auto_complete = function() {
|
||||
$("#quick_search_name").autocomplete({
|
||||
minLength: 1,
|
||||
autoFocus: true,
|
||||
source: function(req, resp) {
|
||||
$.ajax({
|
||||
url: "/artists.json",
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
$("#c-pool-elements #a-new input[type=text]").autocomplete({
|
||||
minLength: 1,
|
||||
autoFocus: true,
|
||||
source: function(req, resp) {
|
||||
$.ajax({
|
||||
url: "/pools.json",
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
var $fields = $("#tags,#post_tag_string,#upload_tag_string");
|
||||
|
||||
$fields.autocomplete({
|
||||
autoFocus: true,
|
||||
focus: function() {
|
||||
return false;
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user