summaryrefslogtreecommitdiffstats
path: root/install/static/hbac.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/hbac.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/hbac.js')
-rwxr-xr-xinstall/static/hbac.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/static/hbac.js b/install/static/hbac.js
index d5105bac..0b642aec 100755
--- a/install/static/hbac.js
+++ b/install/static/hbac.js
@@ -63,23 +63,21 @@ function ipa_hbac_add_dialog(spec) {
that.init = function() {
- that.add_dialog_init();
-
that.add_field(ipa_text_widget({
'name': 'cn',
- 'label': 'Rule Name',
'undo': false
}));
that.add_field(ipa_radio_widget({
'name': 'accessruletype',
- 'label': 'Rule type',
'options': [
{ 'value': 'allow', 'label': 'Allow' },
{ 'value': 'deny', 'label': 'Deny' }
],
'undo': false
}));
+
+ that.add_dialog_init();
};
return that;