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/hbacsvcgroup.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'install/static/hbacsvcgroup.js') diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js index 1972e6c5..792bd44e 100755 --- a/install/static/hbacsvcgroup.js +++ b/install/static/hbacsvcgroup.js @@ -88,8 +88,8 @@ function ipa_hbacsvcgroup_search_facet(spec) { that.init = function() { - that.create_column({name:'cn', label:'Group', primary_key: true}); - that.create_column({name:'description', label:'Description'}); + that.create_column({name:'cn', primary_key: true}); + that.create_column({name:'description'}); that.search_facet_init(); }; @@ -142,8 +142,8 @@ function ipa_hbacsvcgroup_details_facet(spec) { }); that.add_section(section); - section.create_field({ 'name': 'cn', 'label': 'Name' }); - section.create_field({ 'name': 'description', 'label': 'Description' }); + section.create_field({'name': 'cn'}); + section.create_field({'name': 'description'}); section = ipa_details_section({ 'name': 'services', @@ -174,7 +174,6 @@ function ipa_hbacsvcgroup_member_hbacsvc_table_widget(spec) { var column = that.create_column({ name: 'cn', - label: 'Service', primary_key: true, width: '150px' }); @@ -202,20 +201,17 @@ function ipa_hbacsvcgroup_member_hbacsvc_table_widget(spec) { that.create_column({ name: 'description', - label: 'Description', width: '350px' }); that.create_adder_column({ name: 'cn', - label: 'Service', primary_key: true, width: '100px' }); that.create_adder_column({ name: 'description', - label: 'Description', width: '100px' }); -- cgit