Javascript Event System - profile-page-after-flag-comment

From KickApps Documentation

Jump to: navigation, search

This article pertains to the Javascript Event System. You can refer to our list of Javascript Event System Supported Events to learn what else you can do with our event system.

Contents

Summary

This event is fired after a comment has been flagged

Payload Parameters

commentId
(number) ID of the comment being flagged
success
(boolean) Represents the success of the request

Execution Interruption

none

Example

function onAfterFlagComment(data) {

   // do something here
   console.log(data.commentId, data.success)

} var newEventId = Ka.events.listen('profile-page-after-flag-comment', onAfterFlagComment);