7 lines
227 B
TypeScript
7 lines
227 B
TypeScript
|
export function commentReportHandler(event: Event): void {
|
||
|
event.preventDefault();
|
||
|
const button = event.target as HTMLButtonElement;
|
||
|
const commentId = button.dataset.cId;
|
||
|
|
||
|
window['reportDialog']('comment', commentId);
|
||
|
}
|