Fix @mention autocomplete for comments & forum posts.

Fix comment autocomplete (broken in 1257639). Also fix forum post
autocomplete (didn't work when editing forum posts).
This commit is contained in:
evazion
2017-01-02 12:49:14 -06:00
parent 3d2b81d1e8
commit 469f48a118
7 changed files with 7 additions and 6 deletions

View File

@@ -37,7 +37,7 @@
}
Danbooru.Autocomplete.initialize_mention_autocomplete = function() {
var $fields = $("#forum_post_body,#forum_post_body_for_,.comment-form textarea");
var $fields = $(".autocomplete-mentions textarea");
$fields.autocomplete({
delay: 500,
minLength: 2,