Skip to content

Commit 8f373f0

Browse files
authored
Merge pull request #1789 from codidact/0valt/1787/new-thread-validation
Fix for new comment thread title character count behavior
2 parents caff149 + acf2c91 commit 8f373f0

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
@@ -43,10 +43,10 @@
4343
class: 'form-element js-thread-title-field',
4444
data: { post: post.id,
4545
thread: '-1',
46-
character_count: '.js-character-count-thread-title',
46+
character_count: ".js-character-count-thread-title-#{post.id}",
4747
markdown: 'strip' } %>
4848
<%= render 'shared/char_count',
49-
type: 'thread-title',
49+
type: "thread-title-#{post.id}",
5050
min: 1,
5151
max: maximum_thread_title_length %>
5252

0 commit comments

Comments
 (0)