aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/tablelistcountupdate.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/friends/tablelistcountupdate.php')
-rw-r--r--views/default/friends/tablelistcountupdate.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/default/friends/tablelistcountupdate.php b/views/default/friends/tablelistcountupdate.php
new file mode 100644
index 000000000..64f793a07
--- /dev/null
+++ b/views/default/friends/tablelistcountupdate.php
@@ -0,0 +1,22 @@
+<?php
+
+ /**
+ * Elgg friends picker count updater
+ * Updates the friends count on a collection
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['count'] The count
+ * @uses $vars['friendspicker'] The friendspicker counter number
+ */
+
+?>
+
+<script language="text/javascript">
+ $("#friends_membership_count<?php echo $vars['friendspicker']; ?>").html("<?php echo $vars['count']; ?>");
+</script> \ No newline at end of file