fix commenting on 1st comment level
This commit is contained in:
parent
67a6899ed7
commit
dd851c8eeb
|
@ -106,11 +106,6 @@ function commentExpand(id) {
|
|||
closeMenu("comment-fake-form-" + id);
|
||||
openMenu("item-comments-" + id);
|
||||
$("#comment-edit-text-" + id)
|
||||
.keydown(function (e) {
|
||||
if ((e.ctrlKey || e.metaKey) && (e.keyCode == 13 || e.keyCode == 10)) {
|
||||
$("#comment-edit-submit-" + id).trigger('click');
|
||||
}
|
||||
})
|
||||
.putCursorAtEnd()
|
||||
.addClass("comment-edit-text-full")
|
||||
.removeClass("comment-edit-text-empty");
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</p>
|
||||
<div id="dropzone-{{$id}}" class="dropzone">
|
||||
<p>
|
||||
<textarea id="comment-edit-text-{{$id}}" class="dropzone comment-edit-text-empty form-control text-autosize" name="body" placeholder="{{$comment}}" rows="3" data-default="{{$default}}" dir="auto">{{$default}}</textarea>
|
||||
<textarea id="comment-edit-text-{{$id}}" class="dropzone comment-edit-text-empty form-control text-autosize" name="body" placeholder="{{$comment}}" rows="3" data-default="{{$default}}" dir="auto" onkeydown="sendOnCtrlEnter(event, 'comment-edit-submit-{{$id}}')">{{$default}}</textarea>
|
||||
</p>
|
||||
</div>
|
||||
{{if $qcomment}}
|
||||
|
|
Loading…
Reference in a new issue