Superb module, but it would be even better if it had option for reloading page upon appending comment for those who are using ajax_comments like me, ajax refresh would be awesome but simple browser reload would be fine.

Comments

__Sander__’s picture

Is it the axaj_comments module?
And what happens now if both of them are on?

v8powerage’s picture

When Comment join is turned on and I submit one comment after another new comment dissapears and I'm getting message "comment appended to the previous reply", I need to reload page manually to see the effect.

__Sander__’s picture

Status: Active » Needs work
__Sander__’s picture

I've tested it. Got to think, what can be done.
What happens now is that
1) ajax_comments submits a new comment
2) comment_join removes the new one and adds it to the old one
3) ajax_comment sees that there is no new comment and does not even refresh anything...

And the problem is that comment_join works server-side and has no knowledge of the form the user is working with///

Started an issue here: http://drupal.org/node/1239896

__Sander__’s picture

Status: Needs work » Closed (won't fix)

Unable to do anything about it now, the ajax_comment owners are not responding.
And there is nothing I can do without their assistance.

Looks like for the moment the two modules are incompatible.

__Sander__’s picture

Issue summary: View changes

a

v8powerage’s picture

Issue summary: View changes

I found something like this to reload page but it wont work..

function comment_join_ajax_callback($form, $form_state) {
if ($form_state['my_flag']) {
$ret = '

'; $ret .= 'jQuery(document).ready(function($) {'; $ret .= ' location.reload(true);'; $ret .= '});'; $ret .= '

';
}
return $form;
}