aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-11 23:06:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-11 23:06:20 +0000
commitea57b422a843d6c6d07e29bc944d953c72d1f86f (patch)
tree99e4170695efe1df5f7941670299a441c9f17fee
parent124bb94908ff3c6733b891dc77cbddde3fe1f85b (diff)
downloadelgg-ea57b422a843d6c6d07e29bc944d953c72d1f86f.tar.gz
elgg-ea57b422a843d6c6d07e29bc944d953c72d1f86f.tar.bz2
added better list id's based on type
git-svn-id: http://code.elgg.org/elgg/trunk@7600 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/layout/objects/list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/layout/objects/list.php b/views/default/layout/objects/list.php
index 9cbd85f0b..84ba1414c 100644
--- a/views/default/layout/objects/list.php
+++ b/views/default/layout/objects/list.php
@@ -53,9 +53,9 @@ if (is_array($items) && count($items) > 0) {
$html .= "<ul class=\"$list_class\">";
foreach ($items as $item) {
if (elgg_instanceof($item)) {
- $id = "item-{$item->getGUID()}";
+ $id = "elgg-{$item->getType()}-{$item->getGUID()}";
} else {
- $id = "item-{$item->id}";
+ $id = "item-{$item->getType()}-{$item->id}";
}
$html .= "<li id=\"$id\" class=\"$item_class\">";
$html .= elgg_view_list_item($item, $full_view);