Fix #4179: Checkboxes remaining checked after submit on Add Commentary.

Change add commentary to use edit_form_for, which adds
autocomplete="off" to disable autofill in Firefox.
This commit is contained in:
evazion
2020-01-10 19:14:11 -06:00
parent c86c61c9a4
commit c50f3da4be
2 changed files with 15 additions and 69 deletions

View File

@@ -141,7 +141,7 @@
</div>
<div id="add-commentary-dialog" title="Add artist commentary" style="display: none;">
<%= render "artist_commentaries/form", :post => @post %>
<%= render "artist_commentaries/form", post: @post, artist_commentary: @post.artist_commentary || ArtistCommentary.new(post: @post) %>
</div>
<div id="add-to-favgroup-dialog" title="Add to favorite group" style="display: none;">