This has a fix for a previous patch which turned the facets into a
hortizontal list, but broke the clickability.
>From 00563225466b1a16fe8d75d8f41f53414f294715 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Thu, 16 Sep 2010 17:31:21 -0400
Subject: [PATCH 31/33] unbroke the facets link
---
install/static/entity.js | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/install/static/entity.js b/install/static/entity.js
index 7aec565..3c48ca8 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -134,16 +134,15 @@ function ipa_entity_generate_views(obj_name, container)
//TODO replace the plus image with the correct image for each facet
ul.append($('<li></li>', {
title: 'search',
+ text: 'Search',
click: switch_view
- })).append('<img src="plus-enabled.png"/>')
- .append('Search') ;
+ }).prepend('<img src="plus-enabled.png"/>'));
ul.append($('<li></li>', {
text: 'Details',
title: 'details',
click: switch_view
- })).append('<img src="plus-enabled.png"/>')
- .append('Details') ;
+ }).prepend('<img src="plus-enabled.png"/>'));
var attribute_members = ipa_objs[obj_name].attribute_members;
for (attr in attribute_members) {
@@ -154,9 +153,9 @@ function ipa_entity_generate_views(obj_name, container)
ul.append($('<li></li>', {
title: m,
+ text:label,
click: switch_view
- })).append('<img src="plus-enabled.png"/>')
- .append(label);
+ }).prepend('<img src="plus-enabled.png"/>'));
}
}
--
1.7.1
_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel