From b649a16b4612cda64db3fa8beccb6c2043bf084c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 13 Dec 2022 20:26:25 +0200 Subject: [PATCH] fix cancel button --- files/assets/js/comments_v.js | 2 +- files/templates/comments.html | 6 +++--- files/templates/util/macros.html | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 89ae367c44..9d727019c4 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -142,7 +142,7 @@ function post_reply(id){ document.getElementById('reply-form-body-'+id).value = '' document.getElementById('message-reply-'+id).innerHTML = '' - toggleReplyBox('reply-message-c_'+id) + toggleReplyBox('reply-to-c_'+id) const fileupload = document.getElementById('file-upload') if (fileupload) { fileupload.value = null; diff --git a/files/templates/comments.html b/files/templates/comments.html index ad098f14cf..e52bdb6cfe 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -539,10 +539,10 @@ {% endif %} - + {# TODO: swap to comment_reply_box macro #} -
+
- +
diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 6adf8d536b..a30506ac4e 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -136,7 +136,9 @@ {% endif %}
- + {% if target_fullname.startswith('c_') %} + + {% endif %}