summaryrefslogtreecommitdiffstats
path: root/install/static/entity.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-12-06 16:30:10 -0600
committerAdam Young <ayoung@redhat.com>2010-12-06 20:16:15 -0500
commit6350686710c49b632ea7b1085e4db6755056d263 (patch)
tree6a12fdda5ec6f84a9d4654fff57e81ffcdd9730b /install/static/entity.js
parentca436d9ec3210e0c573ea96ae7d6fe71dc9bf943 (diff)
downloadfreeipa-6350686710c49b632ea7b1085e4db6755056d263.tar.gz
freeipa-6350686710c49b632ea7b1085e4db6755056d263.tar.xz
freeipa-6350686710c49b632ea7b1085e4db6755056d263.zip
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 <class name>_<method> (e.g. widget_init).
Diffstat (limited to 'install/static/entity.js')
-rw-r--r--install/static/entity.js17
1 files changed, 2 insertions, 15 deletions
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<data[2].length; i++) {
var field = data[2][i];
@@ -284,6 +269,8 @@ function ipa_entity_set_add_definition(entity_name, data) {
undo: false
}));
}
+
+ dialog.init();
}
function ipa_entity_get_add_dialog(entity_name) {