This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 21
21
this . getUserId ( ) ;
22
22
this . $comForm . addClass ( 'd-none' ) ;
23
23
this . setUpMessageDialog ( ) ;
24
+ //Show an initial new comment
25
+ this . newComment ( null ) ;
24
26
} ,
25
27
cacheDom : function ( ) {
26
28
this . $comForm = $ ( '#commentFormDiv' ) ;
99
101
delete this . subComments [ this . currentId ] ;
100
102
}
101
103
this . clearAndHideForm ( ) ;
104
+ this . newComment ( null ) ;
102
105
} else {
103
106
$ ( '#' + itemName ) . removeClass ( 'fa-caret-square-left' ) ;
104
107
$ ( '#' + itemName ) . addClass ( 'fa-caret-square-down' ) ;
299
302
currForm . before ( divBlock ) ;
300
303
}
301
304
this . clearAndHideForm ( ) ;
305
+ this . newComment ( null ) ;
302
306
} ,
303
307
hookUpButtons : function ( target , result ) {
304
308
//only add these buttons if the user id is the same
329
333
var currForm = this . $comForm ;
330
334
currForm . find ( 'textarea' ) . val ( '' ) ;
331
335
currForm . find ( 'input[name=subject]' ) . val ( '' ) ;
332
- currForm . addClass ( 'd-none' ) ;
336
+ // currForm.addClass('d-none');
333
337
} ,
334
338
335
339
cancelComment :function ( evt ) {
Original file line number Diff line number Diff line change 52
52
</p >
53
53
{% endif %}
54
54
</div >
55
- </div >
56
55
<div id =" commentFormDiv" >
57
56
<div class =" comment_form" id =" comment_0" >
58
57
<form id =" commentForm" action =" {{ path(' zikulaezcommentsmodule_comment_comment' ) }}" method =" post"
116
115
</form >
117
116
</div >
118
117
</div >
118
+ </div >
119
119
<div class =" alert alert-danger d-none" id =" no_replies" >{% trans %}No replies to show!{% endtrans %}</div >
120
120
121
121
<div id =" dialog-message" title =" {{ ' There was a problem with your comment?' | trans| e (' html_attr' ) }}" >
You can’t perform that action at this time.
0 commit comments