From e36f0a47317a3b4c185e78e695c35750a3f218cf Mon Sep 17 00:00:00 2001
From: Adam Young <[email protected]>
Date: Mon, 15 Nov 2010 13:43:10 -0500
Subject: [PATCH] HBAC css cleanup
The additions to the search widget have to go one level deeper, as
'container' has both the action panel and the client area
---
install/static/hbac.js | 11 ++++++++---
install/static/hbacsvc.js | 13 +++++++++----
install/static/hbacsvcgroup.js | 9 +++++----
3 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/install/static/hbac.js b/install/static/hbac.js
index 7a08db38d659a22890540f773c7be9381ccf759b..e7776a66a7ab67b6fdc5f413d03696722dddc082 100755
--- a/install/static/hbac.js
+++ b/install/static/hbac.js
@@ -115,10 +115,9 @@ function ipa_hbac_search_facet(spec) {
var that = this;
- // TODO: replace with IPA.metadata[that.entity_name].label
- $('<h2/>', { 'html': 'HBAC Rules' }).appendTo(container);
/*
+
// Not yet implemented
var left_buttons = $('<span/>', {
@@ -132,6 +131,7 @@ function ipa_hbac_search_facet(spec) {
left_buttons.append(ipa_button({
'label': 'Cull Disabled Rules'
}));
+
*/
var right_buttons = $('<li/>', {
'style': 'float: right;'
@@ -157,9 +157,14 @@ function ipa_hbac_search_facet(spec) {
}
}));
- container.append('<br/><br/>');
that.superior_create(container);
+
+ // TODO: replace with IPA.metadata[that.entity_name].label
+ container.children().last().prepend(
+ $('<h2/>', { 'html': 'HBAC Rules' }));
+ container.children().last().prepend('<br/><br/>');
+
};
return that;
diff --git a/install/static/hbacsvc.js b/install/static/hbacsvc.js
index 1ff5f0a867100de0d8014a6bad92fe230cd8b919..869622b0784ebd073922680da81ea07bf9f4433c 100755
--- a/install/static/hbacsvc.js
+++ b/install/static/hbacsvc.js
@@ -104,9 +104,6 @@ function ipa_hbacsvc_search_facet(spec) {
var that = this;
- // TODO: replace with IPA.metadata[that.entity_name].label
- $('<h2/>', { 'html': 'HBAC Services' }).appendTo(container);
-
var right_buttons = $('<li/>', {
'style': 'float: right;'
}).appendTo($('.action-panel ul'));
@@ -131,9 +128,17 @@ function ipa_hbacsvc_search_facet(spec) {
}
}));
- container.append('<br/><br/>');
that.superior_create(container);
+
+ // TODO: replace with IPA.metadata[that.entity_name].label
+ container.children().last().prepend(
+ $('<h2/>', { 'html': 'HBAC Services' }));
+ container.children().last().prepend('<br/><br/>');
+
+
+
+
};
return that;
diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js
index 979decdb714db7c6dee77dabc73bd265697fde72..bcfaa70e6c20d4ac7c172f5f32c8225b0d93ca5b 100755
--- a/install/static/hbacsvcgroup.js
+++ b/install/static/hbacsvcgroup.js
@@ -115,8 +115,6 @@ function ipa_hbacsvcgroup_search_facet(spec) {
var that = this;
- // TODO: replace with IPA.metadata[that.entity_name].label
- $('<h2/>', { 'html': 'HBAC Service Groups' }).appendTo(container);
var right_buttons = $('<li/>', {
'style': 'float: right;'
@@ -142,9 +140,12 @@ function ipa_hbacsvcgroup_search_facet(spec) {
}
}));
- container.append('<br/><br/>');
-
that.superior_create(container);
+ // TODO: replace with IPA.metadata[that.entity_name].label
+ container.children().last().prepend(
+ $('<h2/>', { 'html': 'HBAC Service Groups' }));
+ container.children().last().prepend('<br/><br/>');
+
};
return that;
--
1.7.1
_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel