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/search.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'install/static/search.js') diff --git a/install/static/search.js b/install/static/search.js index a9f71b9a..a53a9efb 100644 --- a/install/static/search.js +++ b/install/static/search.js @@ -285,13 +285,6 @@ function ipa_search_facet(spec) { }; that.create_column = function(spec) { - if (!spec.label){ - var param_info = ipa_get_param_info(this.entity_name, spec.name); - if (param_info){ - spec.label = param_info.label; - } - } - var column = ipa_column(spec); that.add_column(column); return column; @@ -322,6 +315,8 @@ function ipa_search_facet(spec) { function init() { + that.facet_init(); + that.table = ipa_search_widget({ 'id': that.entity_name+'-search', 'name': 'search', 'label': IPA.metadata[that.entity_name].label, @@ -341,6 +336,8 @@ function ipa_search_facet(spec) { that.table.add_column(column); } + + that.table.init(); } that.is_dirty = function() { -- cgit