forked from rDrama/rDrama
don't do more than 1 quote (chat)
parent
edf9911123
commit
0435081198
|
@ -107,10 +107,12 @@ function send() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function quote(t) {
|
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
|
let username
|
||||||
try {username = t.parentElement.previousElementSibling.previousElementSibling.innerHTML}
|
try {username = t.parentElement.previousElementSibling.previousElementSibling.innerHTML}
|
||||||
catch(e) {username = t.parentElement.previousElementSibling.innerHTML}
|
catch(e) {username = t.parentElement.previousElementSibling.innerHTML}
|
||||||
|
|
||||||
textbox.value = '> ' + text + '\n@' + username + ' '
|
textbox.value = '> ' + text + '\n@' + username + ' '
|
||||||
textbox.focus()
|
textbox.focus()
|
||||||
autoExpand(textbox);
|
autoExpand(textbox);
|
||||||
|
|
|
@ -214,6 +214,6 @@
|
||||||
<script src="{{asset('js/lozad.js')}}"></script>
|
<script src="{{asset('js/lozad.js')}}"></script>
|
||||||
<script src="/assets/js/lite-youtube.js?v=241"></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>
|
</body>
|
Loading…
Reference in New Issue