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/associate.js | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'install/static/associate.js') diff --git a/install/static/associate.js b/install/static/associate.js index 1a96362f..48bb0225 100644 --- a/install/static/associate.js +++ b/install/static/associate.js @@ -153,15 +153,9 @@ function ipa_association_adder_dialog(spec) { } that.adder_dialog_init(); - execute_search(''); - }; that.search = function() { - execute_search(that.get_filter()); - }; - - function execute_search(filter){ function on_success(data, text_status, xhr) { var results = data.result; that.clear_available_values(); @@ -172,8 +166,8 @@ function ipa_association_adder_dialog(spec) { } } - ipa_cmd('find', [filter], {'all': true}, on_success, null, that.other_entity); - } + ipa_cmd('find', [that.get_filter()], {'all': true}, on_success, null, that.other_entity); + }; return that; } @@ -250,7 +244,6 @@ function ipa_association_table_widget(spec) { }; that.add_adder_column = function(column) { - column.entity_name = that.entity_name; that.adder_columns.push(column); that.adder_columns_by_name[column.name] = column; }; @@ -284,6 +277,16 @@ function ipa_association_table_widget(spec) { }); } + for (var i=0; i