diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-06 16:30:10 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-06 20:16:15 -0500 |
commit | 6350686710c49b632ea7b1085e4db6755056d263 (patch) | |
tree | 6a12fdda5ec6f84a9d4654fff57e81ffcdd9730b /install/static/netgroup.js | |
parent | ca436d9ec3210e0c573ea96ae7d6fe71dc9bf943 (diff) | |
download | freeipa-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/netgroup.js')
-rw-r--r-- | install/static/netgroup.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/install/static/netgroup.js b/install/static/netgroup.js index b0b2ede3..9abf6ae7 100644 --- a/install/static/netgroup.js +++ b/install/static/netgroup.js @@ -47,19 +47,17 @@ IPA.add_entity( function() { var dialog = ipa_add_dialog({ name: 'add', - title: 'Add Netgroup', - entity_name:'netgroup' + title: 'Add Netgroup' }); - 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:'netgroup'})); - dialog.add_field(ipa_text_widget({ name: 'description', - entity_name:'netgroup' })); + that.create_association_facets(); that.entity_init(); - } + }; return that; }()); |