forked from MarseyWorld/MarseyWorld
fix quoting new messages
parent
2448c3104f
commit
bb6d798647
|
@ -179,9 +179,7 @@ function quote(t) {
|
||||||
document.getElementById('QuotedUser').innerHTML = username
|
document.getElementById('QuotedUser').innerHTML = username
|
||||||
|
|
||||||
const id = t.parentElement.parentElement.parentElement.id
|
const id = t.parentElement.parentElement.parentElement.id
|
||||||
console.log(id)
|
|
||||||
document.getElementById('quotes_id').value = id
|
document.getElementById('quotes_id').value = id
|
||||||
console.log(document.getElementById('quotes_id').value)
|
|
||||||
document.getElementById('QuotedMessageLink').href = `#${id}`
|
document.getElementById('QuotedMessageLink').href = `#${id}`
|
||||||
|
|
||||||
textbox.focus()
|
textbox.focus()
|
||||||
|
|
|
@ -80,6 +80,7 @@ def speak(data, v):
|
||||||
quotes = data['quotes']
|
quotes = data['quotes']
|
||||||
id = str(uuid.uuid4())
|
id = str(uuid.uuid4())
|
||||||
data = {
|
data = {
|
||||||
|
"id": id,
|
||||||
"quotes": quotes if quotes != 'undefined' else '',
|
"quotes": quotes if quotes != 'undefined' else '',
|
||||||
"hat": v.hat_active(v)[0],
|
"hat": v.hat_active(v)[0],
|
||||||
"user_id": v.id,
|
"user_id": v.id,
|
||||||
|
|
Loading…
Reference in New Issue