summaryrefslogtreecommitdiffstats
path: root/install/static/hbac.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-12-06 13:51:49 -0600
committerAdam Young <ayoung@redhat.com>2010-12-06 20:09:38 -0500
commit95ea68a2175cc1bec0dbb901311e40f55b692c42 (patch)
tree774f26246ffdc803c082b5222bdfe1de7358aa21 /install/static/hbac.js
parent69e77212ea428f79742b9ff0452ef19d74cc76d4 (diff)
downloadfreeipa.git-95ea68a2175cc1bec0dbb901311e40f55b692c42.tar.gz
freeipa.git-95ea68a2175cc1bec0dbb901311e40f55b692c42.tar.xz
freeipa.git-95ea68a2175cc1bec0dbb901311e40f55b692c42.zip
Column i18n
The ipa_column has been modified to get the label from metadata during initialization. The ipa_table_widget has been modified to initialize the columns. Hard-coded labels have been removed from column declarations. The ipa_adder_dialog has been modified to execute a search at the end of setup.
Diffstat (limited to 'install/static/hbac.js')
-rwxr-xr-xinstall/static/hbac.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/install/static/hbac.js b/install/static/hbac.js
index f0f2f96d..d5105bac 100755
--- a/install/static/hbac.js
+++ b/install/static/hbac.js
@@ -93,12 +93,12 @@ function ipa_hbac_search_facet(spec) {
that.init = function() {
- that.create_column({name:'cn', label:'Rule Name'});
- that.create_column({name:'usercategory', label:'Who'});
- that.create_column({name:'hostcategory', label:'Accessing'});
- that.create_column({name:'ipaenabledflag', label:'Active'});
- that.create_column({name:'servicecategory', label:'Via Service'});
- that.create_column({name:'sourcehostcategory', label:'From'});
+ that.create_column({name:'cn'});
+ that.create_column({name:'usercategory'});
+ that.create_column({name:'hostcategory'});
+ that.create_column({name:'ipaenabledflag'});
+ that.create_column({name:'servicecategory'});
+ that.create_column({name:'sourcehostcategory'});
that.search_facet_init();
};
@@ -750,6 +750,8 @@ function ipa_hbac_accesstime_widget(spec) {
that.init = function() {
+ that.widget_init();
+
that.table = ipa_table_widget({
'id': 'accesstime-table',
'name': 'table', 'label': that.label
@@ -761,7 +763,7 @@ function ipa_hbac_accesstime_widget(spec) {
'primary_key': true
});
- that.widget_init();
+ that.table.init();
};
that.create = function(container) {