From 6350686710c49b632ea7b1085e4db6755056d263 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 6 Dec 2010 16:30:10 -0600 Subject: Dialog i18n The ipa_add_dialog has been fixed to initialize the fields which will get the labels from metadata. Hard-coded labels have been removed from field declarations. The superior() method has been removed because it doesn't work with multi-level inheritance. Superclass method for now is called using _ (e.g. widget_init). --- install/static/hostgroup.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'install/static/hostgroup.js') diff --git a/install/static/hostgroup.js b/install/static/hostgroup.js index 99be7259..2fb32dbb 100644 --- a/install/static/hostgroup.js +++ b/install/static/hostgroup.js @@ -47,19 +47,17 @@ IPA.add_entity( function() { var dialog = ipa_add_dialog({ name: 'add', - title: 'Add Hostgroup', - entity_name:'hostgroup' + title: 'Add Hostgroup' }); - that.add_dialog(dialog); + + dialog.add_field(ipa_text_widget({name: 'cn', undo: false})); + dialog.add_field(ipa_text_widget({name: 'description', undo: false})); dialog.init(); - dialog.add_field(ipa_text_widget({ name: 'cn', - entity_name:'hostgroup'})); - dialog.add_field(ipa_text_widget({ name: 'description', - entity_name:'hostgroup' })); + that.create_association_facets(); that.entity_init(); - } + }; return that; }()); -- cgit