mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-23 20:27:47 +01:00
Insert answer into list after submitting
This commit is contained in:
parent
721b7f3657
commit
44b5e3e6a4
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ export function questionAnswerHandler(event: Event): void {
|
|||
}
|
||||
|
||||
showNotification(data.message);
|
||||
document.querySelector('div#answers').insertAdjacentHTML('afterbegin', data.render);
|
||||
document.querySelector('div#q-answer-box').remove();
|
||||
},
|
||||
error: (data, status, xhr) => {
|
||||
|
|
Loading…
Reference in a new issue