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/entity.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'install/static/entity.js') diff --git a/install/static/entity.js b/install/static/entity.js index dcb7e6f8..9372d917 100644 --- a/install/static/entity.js +++ b/install/static/entity.js @@ -47,13 +47,6 @@ function ipa_facet(spec) { that.create_action_panel = ipa_facet_create_action_panel; - that.superior = function(name) { - var method = that[name]; - return function () { - return method.apply(that, arguments); - }; - }; - function init() { } @@ -105,13 +98,6 @@ function ipa_entity(spec) { that.associations = []; that.associations_by_name = {}; - that.superior = function(name) { - var method = that[name]; - return function () { - return method.apply(that, arguments); - }; - }; - that.get_dialog = function(name) { return that.dialogs_by_name[name]; }; @@ -273,7 +259,6 @@ function ipa_entity_set_add_definition(entity_name, data) { 'title': data[1] }); entity.add_dialog(dialog); - dialog.init(); for (var i=0; i