From 95ea68a2175cc1bec0dbb901311e40f55b692c42 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 6 Dec 2010 13:51:49 -0600 Subject: 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. --- install/static/hbac.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'install/static/hbac.js') 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) { -- cgit