Skip to content

Commit ed313d4

Browse files
committed
made the character count selector in reply_to_thread unique
1 parent fbae29b commit ed313d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/comments/_reply_to_thread.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
required: true,
5656
data: { thread: thread.id,
5757
post: thread.post_id,
58-
character_count: ".js-character-count-#{post.id}" } %>
59-
<%= render 'shared/char_count', type: post.id, min: min_chars, max: max_chars %>
58+
character_count: ".js-character-count-thread-reply-#{post.id}" } %>
59+
<%= render 'shared/char_count', type: "thread-reply-#{post.id}", min: min_chars, max: max_chars %>
6060
<%= submit_tag 'Add reply', class: 'button is-muted is-filled', disabled:true %>
6161
<% end %>
6262
<% end %>

0 commit comments

Comments
 (0)