users: remove option to disable autocomplete.

This option was originally added in issue #1747. But only ~350 users
ever disabled autocomplete, only ~120 of these were seen in the last
year, and only 9 new users who signed up in the last year disabled it.

Users wishing to disable autocomplete can use this CSS:

    .ui-autocomplete { display: none !important: }

or this Javascript:

    $("[data-autocomplete]").autocomplete("disable");
This commit is contained in:
evazion
2021-01-14 20:31:00 -06:00
parent 4719a5ed1c
commit d408ccbd41
8 changed files with 38 additions and 46 deletions

View File

@@ -1,4 +1,3 @@
import CurrentUser from './current_user'
import Post from './posts.js.erb'
import Utility from './utility'
@@ -77,9 +76,7 @@ PostModeMenu.initialize_edit_form = function() {
PostModeMenu.close_edit_form = function() {
$("#quick-edit-div").slideUp("fast");
if (CurrentUser.data("enable-auto-complete")) {
$("#post_tag_string").data("uiAutocomplete").close();
}
$("#post_tag_string").data("uiAutocomplete").close();
}
PostModeMenu.initialize_tag_script_field = function() {