diff options
author | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-10 12:06:57 +0000 |
---|---|---|
committer | pete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-10 12:06:57 +0000 |
commit | 86f4f555d8fadcb190f510f90c46ff4e3b537626 (patch) | |
tree | 6c1d3891f49c1072a5f2d6144ad917dfc779d752 | |
parent | 59c3b931afae98a2a0166b0c0462be62daaf11ee (diff) | |
download | elgg-86f4f555d8fadcb190f510f90c46ff4e3b537626.tar.gz elgg-86f4f555d8fadcb190f510f90c46ff4e3b537626.tar.bz2 |
Added a 'show less' link. [Still needs a js function adding to collapse list]
git-svn-id: http://code.elgg.org/elgg/trunk@6432 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/riverdashboard/languages/en.php | 2 | ||||
-rw-r--r-- | mod/riverdashboard/views/default/river/item/wrapper.php | 2 | ||||
-rw-r--r-- | mod/riverdashboard/views/default/riverdashboard/js.php | 4 |
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 + }); }); }); |