aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/friends/collections.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/core/friends/collections.php')
-rw-r--r--views/default/core/friends/collections.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/views/default/core/friends/collections.php b/views/default/core/friends/collections.php
index 5a052b121..c6ee082c8 100644
--- a/views/default/core/friends/collections.php
+++ b/views/default/core/friends/collections.php
@@ -9,17 +9,16 @@
* @uses $vars['collections'] The array of friends collections
*/
-if (!isset($friendspicker)) {
- $friendspicker = 0;
-}
-
-
if (is_array($vars['collections']) && sizeof($vars['collections'])) {
echo "<ul id=\"friends_collections_accordian\">";
- foreach($vars['collections'] as $collection) {
+ $friendspicker = 0;
+ foreach ($vars['collections'] as $collection) {
$friendspicker++;
- echo elgg_view('core/friends/collection', array('collection' => $collection, 'friendspicker' => $friendspicker));
+ echo elgg_view('core/friends/collection', array(
+ 'collection' => $collection,
+ 'friendspicker' => $friendspicker,
+ ));
}
echo "</ul>";
@@ -31,9 +30,9 @@ if (is_array($vars['collections']) && sizeof($vars['collections'])) {
?>
<?php //@todo JS 1.8: no ?>
<script>
-$(document).ready(function(){
+$(function(){
$('#friends_collections_accordian h2').click(function () {
- $(this.parentNode).children("[class=friends-picker]").slideToggle("fast");
+ $(this.parentNode).children("[class=friends-picker-main-wrapper]").slideToggle("fast");
//return false;
});
});