diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-31 16:15:37 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-31 16:15:37 +0000 |
commit | c08bca02bd982e0ad8255b4ba1836e10125a1783 (patch) | |
tree | 0171756953bf414b46553a712fc9719bc4526d11 /views/default/friends/tablelistcountupdate.php | |
parent | 1ad49aaf2f1cb23a81909576437997fffa3951d2 (diff) | |
download | elgg-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 'views/default/friends/tablelistcountupdate.php')
-rw-r--r-- | views/default/friends/tablelistcountupdate.php | 22 |
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 |