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);
|
closeMenu("comment-fake-form-" + id);
|
||||||
openMenu("item-comments-" + id);
|
openMenu("item-comments-" + id);
|
||||||
$("#comment-edit-text-" + 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()
|
.putCursorAtEnd()
|
||||||
.addClass("comment-edit-text-full")
|
.addClass("comment-edit-text-full")
|
||||||
.removeClass("comment-edit-text-empty");
|
.removeClass("comment-edit-text-empty");
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
</p>
|
</p>
|
||||||
<div id="dropzone-{{$id}}" class="dropzone">
|
<div id="dropzone-{{$id}}" class="dropzone">
|
||||||
<p>
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{{if $qcomment}}
|
{{if $qcomment}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user