Insert answer into list after submitting
This commit is contained in:
parent
721b7f3657
commit
44b5e3e6a4
|
@ -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 New Issue