Sorry if I missed a thing. When all comment forms are open, it makes the activity really not nice anymore. Any possibility to use jquery toggle or perhaps an integration with ajax_comments.module?

Thanks for the great work.

Comments

jaydub’s picture

Try the latest -dev snapshot of the 6.1 branch as per this issue: #399732: User activity block appears uncollapsed

That should help with the comments forms showing.

As for Ajax-ified comments, I'm working on that. I've got Ajax activity record and activity comment delete working but I need to consider throwing up a confirmation form before delete. Then get the comment submission Ajax-ified.

gausarts’s picture

Thanks, I just applied the latest dev, the comment forms are collapsible now, but the defaults are all still open.

I managed to add $('ul.activity-list').find('.activity-comments-form-hidden').hide(); inside the function of activity_comments.js so that all the forms are now hidden by default.

Drupal.behaviors.activityComments = function(context) {
	// I add this line to hide the form by default
	$('ul.activity-list').find('.activity-comments-form-hidden').hide();
  	$('.activity-comments-click-to-show', context).bind('click', function() {
	$(this).parent().siblings('.activity-comments-form-hidden').slideToggle('fast');
  });
};

It works, but then I need to autohide the previously open form whenever I open another form:) Any hint with the parent and siblings stuff? Or I guess I'd better wait for the fully ajaxified version. Thanks

sirkitree’s picture

Status: Active » Closed (won't fix)

closing. 1.x no longer supported.