diff options
Diffstat (limited to 'views/default/friends/collectiontabs.php')
-rw-r--r-- | views/default/friends/collectiontabs.php | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/views/default/friends/collectiontabs.php b/views/default/friends/collectiontabs.php deleted file mode 100644 index 6aef4bf1e..000000000 --- a/views/default/friends/collectiontabs.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php -/** - * Elgg friends collections - * Lists a user's friends collections - * - * @package Elgg - * @subpackage Core - * - * @uses $vars['collections'] The array of friends collections - */ - -$friendspicker = $vars['friendspicker']; - -$collectionid = $vars['collection']->id; -$ownerid = $vars['owner']->getGUID(); - -?> - -<div id="elgg-horizontal-tabbed-nav"> -<ul> -<li class="selected"><a href="#" class="collectionmembers<?php echo $friendspicker; ?>"><?php echo elgg_echo('friends:collections:members'); ?></a></li> - -<li><a href="#" class="editmembers<?php echo $friendspicker; ?>"><?php echo elgg_echo('friends:collections:edit'); ?></a></li> - -</ul> -</div> - -<script type="text/javascript"> -$(document).ready(function () { - - $('a.collectionmembers<?php echo $friendspicker; ?>').click(function () { - // load collection members pane - $('#friends-picker_placeholder<?php echo $friendspicker; ?>').load('<?php echo elgg_get_site_url(); ?>pages/friends/pickercallback.php?username=<?php echo get_loggedin_user()->username; ?>&type=list&collection=<?php echo $collectionid; ?>&friendspicker=<?php echo $friendspicker; ?>'); - - // remove selected state from previous tab - $(this).parent().parent().find("li.selected").removeClass("selected"); - // add selected class to current tab - $(this).parent().addClass("selected"); - - return false; - }); - - $('a.editmembers<?php echo $friendspicker; ?>').click(function () { - // load friends picker pane - $('#friends-picker_placeholder<?php echo $friendspicker; ?>').load('<?php echo elgg_get_site_url(); ?>pages/friends/pickercallback.php?username=<?php echo get_loggedin_user()->username; ?>&type=picker&collection=<?php echo $collectionid; ?>&friendspicker=<?php echo $friendspicker; ?>'); - - // remove selected state from previous tab - $(this).parent().parent().find("li.selected").removeClass("selected"); - // add selected class to current tab - $(this).parent().addClass("selected"); - - return false; - }); - - -}); -</script> |