From 2447aa071c65e99f9981059637054734f3951e0b Mon Sep 17 00:00:00 2001
From: ben
Date: Fri, 20 Feb 2009 17:49:05 +0000
Subject: The friends picker now highlights tabs when creating a collection if
a user is present there. Also, the separate friends picker in the
notification plugin is also now internationalised.
git-svn-id: https://code.elgg.org/elgg/trunk@2872 36083f99-b078-4883-b0ff-0f9b5a30f544
---
views/default/friends/forms/edit.php | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
(limited to 'views/default/friends/forms')
diff --git a/views/default/friends/forms/edit.php b/views/default/friends/forms/edit.php
index 683e0503c..924c479e0 100644
--- a/views/default/friends/forms/edit.php
+++ b/views/default/friends/forms/edit.php
@@ -18,10 +18,12 @@
// Set title, form destination
if (isset($vars['collection'])) {
$action = "friends/editcollection";
- $title = $vars['collection'][0]->name;
+ $title = $vars['collection'][0]->name;
+ $highlight = 'default';
} else {
$action = "friends/addcollection";
- $title = "";
+ $title = "";
+ $highlight = 'all';
}
@@ -46,7 +48,7 @@
$form_body .= "
";
$form_body .= "".
- elgg_view('friends/picker',array('entities' => $vars['friends'], 'internalname' => 'friends_collection')) . "
";
+ elgg_view('friends/picker',array('entities' => $vars['friends'], 'internalname' => 'friends_collection', 'highlight' => $highlight)) . "";
$form_body .= "";
if (isset($vars['collection'])) {
--
cgit v1.2.3