mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:29:52 +01:00
Port questionbox report functionality to TypeScript
This commit is contained in:
parent
88d8cae815
commit
e33d2478c2
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue