File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ $(() => {
236236 * @type {Record<`${number}-${number}`, Record<string, number>> }
237237 */
238238 const pingable = { } ;
239- $ ( document ) . on ( 'keyup' , '.js-comment-field' , pingable_popup ) ;
239+ $ ( document ) . on ( 'keyup' , '.js-comment-field, .js-thread-title-field ' , pingable_popup ) ;
240240
241241 /**
242242 * @type {QPixelPingablePopupCallback }
Original file line number Diff line number Diff line change 3939 You can give your comment thread a title. If you leave this blank, the beginning of the initial comment will
4040 be shown.
4141 </ span >
42- <%= text_field_tag :title , '' , class : 'form-element' , data : { character_count : ".js-character-count-thread-title" } %>
42+ <%= text_field_tag :title , '' ,
43+ class : 'form-element js-thread-title-field' ,
44+ data : { post : post . id ,
45+ thread : '-1' ,
46+ character_count : ".js-character-count-thread-title" } %>
4347 <%= render 'shared/char_count' , type : 'thread-title' %>
4448
4549 <%= submit_tag 'Create thread' , class : 'button is-filled' , id : "create_thread_button_#{ post . id } " , disabled : true %>
Original file line number Diff line number Diff line change 1616 </ div >
1717 < div class ="modal--body ">
1818 <%= label_tag :title , 'Title' , class : 'form-element' %>
19- <%= text_field_tag :title , thread . title , class : 'form-element' %>
19+ <%= text_field_tag :title ,
20+ thread . title ,
21+ class : 'form-element js-thread-title-field' ,
22+ data : { post : thread . post . id , thread : thread . id } %>
2023 </ div >
2124 < div class ="modal--footer ">
2225 <%= submit_tag 'Update thread' , class : 'button is-muted is-filled' %>
You can’t perform that action at this time.
0 commit comments