remove cringe space

master
Aevann 2023-09-29 03:44:22 +03:00
parent 39c210c153
commit 8e47a31c97
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ socket.on('speak', function(json) {
}
document.getElementsByClassName('quotes')[0].classList.remove("d-none")
document.getElementsByClassName('QuotedMessageLink')[0].href = '#' + json.quotes
document.getElementsByClassName('QuotedUser')[0].innerHTML = quoted.parentElement.querySelector('.userlink').textContent
document.getElementsByClassName('QuotedUser')[0].innerHTML = quoted.parentElement.querySelector('.userlink').textContent.trim()
document.getElementsByClassName('QuotedMessage')[0].innerHTML = quoted.querySelector('.text').innerHTML
}
}
@ -169,7 +169,7 @@ function quote(t) {
document.getElementById('QuotedMessage').innerHTML = text
const username = t.parentElement.parentElement.parentElement.parentElement.parentElement.getElementsByClassName('userlink')[0].textContent
document.getElementById('QuotedUser').innerHTML = username
document.getElementById('QuotedUser').innerHTML = username.trim()
const id = t.parentElement.parentElement.parentElement.parentElement.id
document.getElementById('quotes_id').value = id