aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/riverdashboard/languages/en.php2
-rw-r--r--mod/riverdashboard/views/default/river/item/wrapper.php2
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/js.php4
3 files changed, 5 insertions, 3 deletions
diff --git a/mod/riverdashboard/languages/en.php b/mod/riverdashboard/languages/en.php
index 6386ce214..1ee5aab8d 100644
--- a/mod/riverdashboard/languages/en.php
+++ b/mod/riverdashboard/languages/en.php
@@ -39,7 +39,7 @@ $english = array(
'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',
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
+
});
});
});