summaryrefslogtreecommitdiffstats
path: root/install/static/sudocmd.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/sudocmd.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/sudocmd.js')
-rwxr-xr-xinstall/static/sudocmd.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/install/static/sudocmd.js b/install/static/sudocmd.js
index 733344a2b..ebe96b089 100755
--- a/install/static/sudocmd.js
+++ b/install/static/sudocmd.js
@@ -61,14 +61,12 @@ function ipa_sudocmd_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:'sudocmd', undo: false}));
+ that.add_field(ipa_text_widget({name:'description', undo: false}));
- that.add_field(ipa_text_widget({name:'sudocmd', label:'Command', undo: false}));
- that.add_field(ipa_text_widget({name:'description', label:'Description', undo: false}));
+ that.add_dialog_init();
};
return that;
@@ -130,10 +128,6 @@ function ipa_sudocmd_details_facet(spec) {
var that = ipa_details_facet(spec);
- that.superior_init = that.superior('init');
- that.superior_create = that.superior('create');
- that.superior_setup = that.superior('setup');
-
that.init = function() {
var section = ipa_details_list_section({
@@ -145,7 +139,7 @@ function ipa_sudocmd_details_facet(spec) {
section.create_field({'name': 'sudocmd'});
section.create_field({'name': 'description'});
- that.superior_init();
+ that.details_facet_init();
};
return that;