forked from MarseyWorld/MarseyWorld
refresh comment textarea on edit - fixes edge case
parent
fa0bb57253
commit
f28ae7cca1
|
@ -178,6 +178,7 @@ function comment_edit(id){
|
|||
document.getElementById('cancel-edit-'+id).click()
|
||||
bs_trigger(commentForm);
|
||||
document.getElementById('filename-edit-reply-' + id).innerHTML = '<i class="fas fa-file"></i>';
|
||||
document.getElementById('comment-edit-body-' + id).value = data["body"];
|
||||
}
|
||||
else {
|
||||
showToast(false, getMessageFromJsonData(false, data));
|
||||
|
|
|
@ -462,7 +462,7 @@ def edit_comment(cid, v):
|
|||
g.db.add(n)
|
||||
|
||||
g.db.commit()
|
||||
return {"comment": c.realbody(v)}
|
||||
return {"body": body, "comment": c.realbody(v)}
|
||||
|
||||
|
||||
@app.post("/delete/comment/<cid>")
|
||||
|
|
Loading…
Reference in New Issue