summaryrefslogtreecommitdiffstats
path: root/install/ui/hbac.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-08-29 17:34:10 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-08-31 16:29:45 +0000
commit6c6748748bca8dba6e8af55917e92839734bbc7b (patch)
tree8fb460f0874cc173a2f0086f12722831f3d79cb8 /install/ui/hbac.js
parent6a2dfde086bdda62964a9737a300818d2ab24a4b (diff)
downloadfreeipa.git-6c6748748bca8dba6e8af55917e92839734bbc7b.tar.gz
freeipa.git-6c6748748bca8dba6e8af55917e92839734bbc7b.tar.xz
freeipa.git-6c6748748bca8dba6e8af55917e92839734bbc7b.zip
Fixed hard-coded UI messages.
Some hard-coded messages in ipa.js have been moved into internal.py. The messages in internal.py have been rearranged to match the output (ipa_init.json). A new method IPA.get_message() has been added to take a message ID and return the translated message or a default message if not found. Ticket #1701
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r--install/ui/hbac.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js
index 3223e0f3..7f445b91 100644
--- a/install/ui/hbac.js
+++ b/install/ui/hbac.js
@@ -156,8 +156,8 @@ IPA.hbacrule_details_facet = function(spec) {
section.radio({
name: 'ipaenabledflag',
options:[
- {'value': 'TRUE',label: IPA.messages['true']},
- {'value': 'FALSE',label:IPA.messages['false']}
+ { value: 'TRUE', label: IPA.get_message('true') },
+ { value: 'FALSE', label: IPA.get_message('false') }
]
});
return section;