mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 03:27:52 +08:00
Merge pull request #2249 from aignatov-bio/ai-sci-fix-comment-error
Remove edit initialization from comment view mode
This commit is contained in:
commit
4d3968a48a
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
<% report = false unless defined?(report) %>
|
||||
<% 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' : '' %>"
|
||||
<div
|
||||
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) %>"
|
||||
|
|
Loading…
Reference in a new issue