Javascript Event System - profile-page-after-delete-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 deleting a profile comment

Payload Parameters

commentId
(number) ID of the comment to be deleted
success
(boolean) Represents the success of the request

Execution Interruption

none

Example

function onAfterDeleteComment(data) {

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

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