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/add.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/static/add.js') diff --git a/install/static/add.js b/install/static/add.js index d587b80d9..f2eebb8ac 100644 --- a/install/static/add.js +++ b/install/static/add.js @@ -84,6 +84,8 @@ function ipa_add_dialog(spec) { that.add_button('Cancel', function() { that.close(); }); + + that.dialog_init(); }; that.add = function(record, on_success, on_error) { @@ -109,7 +111,6 @@ function ipa_add_dialog(spec) { ipa_cmd('add', args, options, on_success, on_error, that.entity_name); }; - that.superior_init = that.superior('init'); that.add_dialog_init = that.init; return that; -- cgit