Skip to content

Commit 91fc2c3

Browse files
committed
made the character count selected in new_thread_modal unique
1 parent ed313d4 commit 91fc2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/comments/_new_thread_modal.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
required: true,
3232
data: { post: post.id,
3333
thread: '-1',
34-
character_count: ".js-character-count-#{post.id}" } %>
35-
<%= render 'shared/char_count', type: post.id, min: min_chars, max: max_chars %>
34+
character_count: ".js-character-count-new-thread-#{post.id}" } %>
35+
<%= render 'shared/char_count', type: "new-thread-#{post.id}", min: min_chars, max: max_chars %>
3636

3737
<%= label_tag :title, 'Comment thread title (optional)', class: 'form-element' %>
3838
<span class="form-caption">

0 commit comments

Comments
 (0)