Remove edit initialization from view mode

This commit is contained in:
aignatov-bio 2019-12-06 13:26:47 +01:00
parent f675948fa6
commit 63edd3e877

View file

@ -2,7 +2,7 @@
<% readonly = false unless defined?(readonly) %>
<% edit_mode = (comment.user == current_user && !readonly) %>
<div
class="comment-container inline-init-handler <%= edit_mode ? 'comment-editable-field' : '' %> <%= report ? 'report' : '' %>"
class="comment-container <%= edit_mode ? 'inline-init-handler' : '' %> <%= report ? 'report' : '' %>"
data-field-to-update="message"
data-params-group="comment"
data-path-to-update="<%= comment_action_url(comment) %>"