]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added better list id's based on type
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 11 Dec 2010 23:06:20 +0000 (23:06 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 11 Dec 2010 23:06:20 +0000 (23:06 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7600 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/layout/objects/list.php

index 9cbd85f0b8e4265127bba47b673de5763d686b17..84ba1414cae3cc19654d5cd6ca03042ab01df846 100644 (file)
@@ -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);