mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
Merge pull request #13529 from xundeenergie/send-with-ctrlenter
[frio] fix commenting on 1st comment level
This commit is contained in:
commit
48be5a534d
2 changed files with 1 additions and 6 deletions
|
@ -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 a new issue