Aevann 2023-08-14 09:55:32 +03:00
parent 74a112ba98
commit 4a30af9785
1 changed files with 5 additions and 3 deletions

View File

@ -218,9 +218,11 @@ function comment_edit(id){
document.getElementById('comment-edit-body-' + id).value = data["body"]; document.getElementById('comment-edit-body-' + id).value = data["body"];
const ping_cost = document.getElementById('comment-ping-cost-' + id) if (data["ping_cost"]) {
ping_cost.innerText = data["ping_cost"]; const ping_cost = document.getElementById('comment-ping-cost-' + id)
ping_cost.parentElement.classList.remove('d-none') ping_cost.innerText = data["ping_cost"]
ping_cost.parentElement.classList.remove('d-none')
}
const input = ta.parentElement.querySelector('input[type="file"]') const input = ta.parentElement.querySelector('input[type="file"]')
input.previousElementSibling.innerHTML = ''; input.previousElementSibling.innerHTML = '';