Active
Project:
Micro activity
Version:
6.x-1.0-beta1
Component:
Documentation
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2011 at 16:09 UTC
Updated:
6 Nov 2011 at 15:05 UTC
I Installed it, but nothing is displayed when I hover username in these links '/heartbeat/microactivity' and '/heartbeat/publicheartbeat'
I can't find the docs, where is it?
Comments
Comment #1
bonn commentedhere is my small fix to make it work out of the box with module heartbeat.
Add the code above, inside file micro_activity.js line 80 right after the selector $('span.micro-activity').
After installing this module, just go to link '/heartbeat/publicheartbeat', hover on usernames to see the pop-up.
Comment #2
superfedya commentedCan you provide please a look of full micro_activity.js code?
Comment #3
superfedya commentedBecause it doesn't work. Maybe I didn't add this code the right way.
Thanks
Comment #4
ianraf commenteddoes not work
is just the point where I put the code posted above.
MicroActivity.selectors.microActivity = {
execute : function() {
// Test to trigger it in the stream.
$('span.micro-activity').each(function() {
var $element = $(this);
var classes = $element.attr('class').split(' ');
for (n in classes) {
var uid = classes[n].replace('micro-activity-', '');
if (parseInt(uid) == uid) {
MicroActivity.bindControls(uid, $('a', $element));
}
}
}); ----> line 80
$('.heartbeat-messages-wrapper div:visible.beat-item').each(function() {
var $element = $(this);
var uid = $('a.user', this).attr('href').replace('/user/', '');
if (parseInt(uid) == uid) {
MicroActivity.bindControls(uid, $('a.user', $element));
}
});
}
}