'option:avatar' => 'Avatars',
// likes and comments
- 'riverdashbardo:n_more_comments' => '+%s more',
+ 'riverdashboard:n_more_comments' => '+%s more',
// ecml
'riverdashboard:ecml:desc:activity' => 'Recent Activity',
// display appropriate comment link
if ($more_comments_count > 0) {
echo "<a class=\"river_show_more_comments link\">" .
- sprintf(elgg_echo('riverdashbardo:n_more_comments'), $more_comments_count) . '</a>';
+ sprintf(elgg_echo('riverdashboard:n_more_comments'), $more_comments_count) . '</a>';
}
echo "<div class=\"comments_list\">";
foreach ($comments as $comment) {
$.post('<?php echo $vars['url'];?>mod/riverdashboard/endpoint/get_comments.php', params, function(data) {
commentsList.prepend(data);
- commentsList.prev('.river_show_more_comments').hide();
+ commentsList.prev('.river_show_more_comments').html('Show less');
+ // @todo need a new function to collapse list back down to only show 3 comments
+
});
});
});