make it possible for lazy niggas to append quotes using the "reply" button

pull/142/head
Aevann 2023-03-19 09:48:38 +02:00
parent 1e9b32699f
commit 5d3c8990e0
1 changed files with 3 additions and 1 deletions

View File

@ -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()
}