diff options
Diffstat (limited to 'mod/riverdashboard/views')
-rw-r--r-- | mod/riverdashboard/views/default/river/item/wrapper.php | 2 | ||||
-rw-r--r-- | mod/riverdashboard/views/default/riverdashboard/js.php | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mod/riverdashboard/views/default/river/item/wrapper.php b/mod/riverdashboard/views/default/river/item/wrapper.php index e50a3fe3f..6e106529e 100644 --- a/mod/riverdashboard/views/default/river/item/wrapper.php +++ b/mod/riverdashboard/views/default/river/item/wrapper.php @@ -77,7 +77,7 @@ if ($comments){ // 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) { diff --git a/mod/riverdashboard/views/default/riverdashboard/js.php b/mod/riverdashboard/views/default/riverdashboard/js.php index 63afa167e..1c5f4ee76 100644 --- a/mod/riverdashboard/views/default/riverdashboard/js.php +++ b/mod/riverdashboard/views/default/riverdashboard/js.php @@ -56,7 +56,9 @@ $.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 + }); }); }); |