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

@@ -127,6 +127,7 @@ module ApplicationHelper
options[:input_name] ||= "#{object}[#{name}]"
options[:value] ||= instance_variable_get("@#{object}").try(name)
options[:preview_id] ||= "dtext-preview"
options[:classes] ||= ""
render "dtext/form", options
end