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/hbacsvcgroup.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'install/static/hbacsvcgroup.js') diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js index 792bd44e6..6e7460e0b 100755 --- a/install/static/hbacsvcgroup.js +++ b/install/static/hbacsvcgroup.js @@ -67,14 +67,12 @@ function ipa_hbacsvcgroup_add_dialog(spec) { var that = ipa_add_dialog(spec); - that.superior_init = that.superior('init'); - that.init = function() { - that.superior_init(); + that.add_field(ipa_text_widget({name:'cn', undo: false})); + that.add_field(ipa_text_widget({name:'description', undo: false})); - that.add_field(ipa_text_widget({name:'cn', label:'Name', undo: false})); - that.add_field(ipa_text_widget({name:'description', label:'Description', undo: false})); + that.add_dialog_init(); }; return that; -- cgit