mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2026-01-06 16:24:49 +08:00
Remove edit initialization from view mode
This commit is contained in:
parent
f675948fa6
commit
63edd3e877
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<% readonly = false unless defined?(readonly) %>
|
<% readonly = false unless defined?(readonly) %>
|
||||||
<% edit_mode = (comment.user == current_user && !readonly) %>
|
<% edit_mode = (comment.user == current_user && !readonly) %>
|
||||||
<div
|
<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-field-to-update="message"
|
||||||
data-params-group="comment"
|
data-params-group="comment"
|
||||||
data-path-to-update="<%= comment_action_url(comment) %>"
|
data-path-to-update="<%= comment_action_url(comment) %>"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue