ui.like Message
Client-side message raised and consumed by the jQuery.evolutionLike plugin, allowing multiple instances of the plugin to stay in synchronization. The message is raised when the user likes or unlikes a piece of content. Other scripts can also handle this event.
Usage
$.telligent.evolution.messaging.subscribe('ui.like', function(data) {
// handle the event
});
Data
contentId
: content id (string)contentTypeId
: content type id (string)typeId
: content like type id (optional string)count
: current count of likes for the itemliked
: when true, message represents a like being addedmessage
: text representation of current likes (e.g. X, Y, and Z others liked)