forked from rDrama/rDrama
1
0
Fork 0

don't do more than 1 quote (chat)

master
Aevann1 2022-08-26 22:44:24 +02:00
parent edf9911123
commit 0435081198
2 changed files with 4 additions and 2 deletions

View File

@ -107,10 +107,12 @@ function send() {
}
function quote(t) {
text = t.previousElementSibling.innerHTML.replace(/>/g, "> ").replace(/\n/g, "\n> ").replace(/\*/g,"\\*")
text = t.previousElementSibling.innerHTML.replace(/\*/g,"\\*").split('\n').pop()
let username
try {username = t.parentElement.previousElementSibling.previousElementSibling.innerHTML}
catch(e) {username = t.parentElement.previousElementSibling.innerHTML}
textbox.value = '> ' + text + '\n@' + username + ' '
textbox.focus()
autoExpand(textbox);

View File

@ -214,6 +214,6 @@
<script src="{{asset('js/lozad.js')}}"></script>
<script src="/assets/js/lite-youtube.js?v=241"></script>
<script src="/chat.js?v=3040"></script>
<script src="/chat.js?v=3041"></script>
</body>