diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-06-30 13:28:51 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-06-30 13:28:51 +0000 |
commit | 0af3ab738efb2fe6ea14d33a7a8261cfdb60efb7 (patch) | |
tree | 4a366870cc8b4f44751edd9c3e6ccf960b6d01c8 /views/default/friends/collection.php | |
parent | d3efc6c117d43e651a7e4e85162237311f5816cf (diff) | |
download | elgg-0af3ab738efb2fe6ea14d33a7a8261cfdb60efb7.tar.gz elgg-0af3ab738efb2fe6ea14d33a7a8261cfdb60efb7.tar.bz2 |
Modified output/confirmlink view to accept a class param.
user_remove_friend() uses remove_user_from_access_collection() instead of raw SQL.
Deleting an access collection prompts using output/confirmlink.
git-svn-id: https://code.elgg.org/elgg/trunk@3368 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/friends/collection.php')
-rw-r--r-- | views/default/friends/collection.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/default/friends/collection.php b/views/default/friends/collection.php index a12ad6e6a..1a9949cc9 100644 --- a/views/default/friends/collection.php +++ b/views/default/friends/collection.php @@ -28,8 +28,11 @@ //as collections are private, check that the logged in user is the owner
if($coll->owner_guid == $_SESSION['user']->getGUID()) {
- $confirm = addslashes(elgg_echo('question:areyousure'));
- echo "<div class=\"friends_collections_controls\"> <a href=\"" . $vars['url'] . "action/friends/deletecollection?collection={$coll->id}\" class=\"delete_collection\" onclick=\"if (!confirm('{$confirm}')) { return false; }; $('div.friends_picker').empty();\"> </a>";
+ echo "<div class=\"friends_collections_controls\">";
+ echo elgg_view('output/confirmlink', array(
+ 'href' => $vars['url'] . 'action/friends/deletecollection?collection=' . $coll->id,
+ 'class' => 'delete_collection'
+ ));
echo "</div>";
}
echo $coll->name;
|