Port questionbox report functionality to TypeScript
This commit is contained in:
parent
88d8cae815
commit
e33d2478c2
|
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue