aboutsummaryrefslogtreecommitdiff
path: root/friends
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-31 16:15:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-31 16:15:37 +0000
commitc08bca02bd982e0ad8255b4ba1836e10125a1783 (patch)
tree0171756953bf414b46553a712fc9719bc4526d11 /friends
parent1ad49aaf2f1cb23a81909576437997fffa3951d2 (diff)
downloadelgg-c08bca02bd982e0ad8255b4ba1836e10125a1783.tar.gz
elgg-c08bca02bd982e0ad8255b4ba1836e10125a1783.tar.bz2
Counts now update when you save a friends collection
git-svn-id: https://code.elgg.org/elgg/trunk@1638 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'friends')
-rw-r--r--friends/pickercallback.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/friends/pickercallback.php b/friends/pickercallback.php
index 478549d3d..26a8718a0 100644
--- a/friends/pickercallback.php
+++ b/friends/pickercallback.php
@@ -27,6 +27,7 @@
}*/
$collection = (int) get_input('collection',0);
$members = get_members_of_access_collection($collection, true);
+ if (!$members) $members = array();
$friendspicker = (int) get_input('friendspicker',0);
@@ -38,7 +39,8 @@
switch($type) {
case 'list':
- $content = elgg_view('friends/tablelist',array('entities' => $members));
+ $js_segment = elgg_view('friends/tablelistcountupdate',array('friendspicker' => $friendspicker, 'count' => sizeof($members)));
+ $content = elgg_view('friends/tablelist',array('entities' => $members, 'content' => $js_segment));
break;
default: $friends = $pageowner->getFriends('',9999);
$content = elgg_view('friends/picker',array(