Port questionbox report functionality to TypeScript

This commit is contained in:
Andreas Nedbal 2022-01-03 22:21:26 +01:00 committed by Andreas Nedbal
parent 88d8cae815
commit e33d2478c2

View file

@ -0,0 +1,7 @@
export function questionboxReportHandler(event: Event) {
event.preventDefault();
const button = event.target as HTMLButtonElement;
const questionId = button.dataset.qId;
window['reportDialog']('question', questionId);
}