From dd851c8eeb30b564d784c46087ecdb41d64c7088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 11 Oct 2023 08:38:05 +0200 Subject: [PATCH] fix commenting on 1st comment level --- view/theme/frio/js/textedit.js | 5 ----- view/theme/frio/templates/comment_item.tpl | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/view/theme/frio/js/textedit.js b/view/theme/frio/js/textedit.js index 73b7b084f..3a384bbb2 100644 --- a/view/theme/frio/js/textedit.js +++ b/view/theme/frio/js/textedit.js @@ -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"); diff --git a/view/theme/frio/templates/comment_item.tpl b/view/theme/frio/templates/comment_item.tpl index c81d259b4..5e90589c6 100644 --- a/view/theme/frio/templates/comment_item.tpl +++ b/view/theme/frio/templates/comment_item.tpl @@ -46,7 +46,7 @@

- +

{{if $qcomment}}