New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggling of Edit links in comments not working #6667
Comments
What do you mean by toggling? That sounds like duplicate of #6666 |
Toggling means - showing the inline edit form. The error is due to the selector Comments rendered via elgg_view_entity($comment) are not wrapped with in ".elgg-item-object-comment" |
The class is added by elgg_list_entities in default list view. I assume, you just want it to work on standalone item? |
Yes, It needs to be working even on a standalone item. The links are supposed to work when ever they are shown, right? But the js selector makes it work only, if it is being rendered by the elgg_list_entities(). |
The inline comment form is a reusable form that is not available on a single comment. The form is part of the listing of the comments and not part of the object view. In core Elgg there are no uses of a single If you need the inline form in your own plugin, you can do (something like) the following: echo "<div class='elgg-comments'>";
echo elgg_list_entities(array("guids" => array($your_comment_guid)));
echo elgg_view_form('comment/save', array(), $vars);
echo "</div>"; |
Toggling of "edit" link in comments is not working when a comment is rendered using
elgg_view_entity($comment)
Version - 1.9
The text was updated successfully, but these errors were encountered: