summaryrefslogtreecommitdiffstats
path: root/install/ui/hbac.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-13 21:10:47 -0500
committerAdam Young <ayoung@redhat.com>2011-07-14 11:44:48 -0400
commit4bd85ceb90d6b8639c14e68691f2c9f447980c2d (patch)
tree0d114ff0faea534d6f3e2b81e35d25196ef5f2e7 /install/ui/hbac.js
parenta746c613a4fb3d0eed5c73455ebb2e674ed7793d (diff)
downloadfreeipa-4bd85ceb90d6b8639c14e68691f2c9f447980c2d.tar.gz
freeipa-4bd85ceb90d6b8639c14e68691f2c9f447980c2d.tar.xz
freeipa-4bd85ceb90d6b8639c14e68691f2c9f447980c2d.zip
Fixed label capitalization
The CSS text-transform sometimes produces incorrect capitalization, so the code has been modified to use translated labels that already contain the correct capitalization. Ticket #1424
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r--install/ui/hbac.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js
index 022e26a0d..87f8a36dc 100644
--- a/install/ui/hbac.js
+++ b/install/ui/hbac.js
@@ -845,7 +845,7 @@ IPA.hbacrule_accesstime_widget = function(spec) {
var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
var title = IPA.messages.association.add;
- title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label);
+ title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label_singular);
title = title.replace('${primary_key}', pkey);
title = title.replace('${other_entity}', that.label);
@@ -947,14 +947,13 @@ IPA.hbacrule_accesstime_widget = function(spec) {
var title;
if (!values.length) {
title = IPA.messages.dialogs.remove_empty;
- title = title.replace('${entity}', that.label);
alert(title);
return;
}
var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
title = IPA.messages.association.remove;
- title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label);
+ title = title.replace('${entity}', IPA.metadata.objects[that.entity_name].label_singular);
title = title.replace('${primary_key}', pkey);
title = title.replace('${other_entity}', that.label);