]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added a 'show less' link. [Still needs a js function adding to collapse list]
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Jun 2010 12:06:57 +0000 (12:06 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 10 Jun 2010 12:06:57 +0000 (12:06 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6432 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/riverdashboard/languages/en.php
mod/riverdashboard/views/default/river/item/wrapper.php
mod/riverdashboard/views/default/riverdashboard/js.php

index 6386ce214b8ea8043440ccaa9499a83d715bac0b..1ee5aab8dc3b7d96d2a8531283e6a8c650db120c 100644 (file)
@@ -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',
index e50a3fe3ff318d0e90d42e40c4ab036e62454e40..6e106529eee23f9c233829b258332047e199bc7b 100644 (file)
@@ -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) {
index 63afa167e04446c4d083d5f749c8bfff3de846fc..1c5f4ee765d9d9669397778ddc694a727d8fa8f9 100644 (file)
@@ -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
+                               
                        });
                });
        });