Javascript Event System - play-page-after-add-favorite

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 member adds a media item to their favorites.

Payload Parameters

success
(boolean) Result of the request to add a favorite

Execution Interruption

none

Example

function onAfterAddFavorite(success) {

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

} var newEventId = Ka.events.listen('play-page-after-add-favorite', onAfterAddFavorite);