From 5d3c8990e0df46cb203302a5156b77e29d8d22f7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 19 Mar 2023 09:48:38 +0200 Subject: [PATCH] make it possible for lazy niggas to append quotes using the "reply" button --- files/assets/js/comments_v.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index a187626aa..d053b0276 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -64,7 +64,9 @@ function toggleReplyBox(id) { text = text.replace(/\n> \n/g,"\n \n") text = text.split('> Reply')[0] if (!text.endsWith('\n')) text += '\n' - ta.value = text + + if (ta.value) ta.value += '\n' + text + else ta.value = text } ta.focus() }