summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-05-20 23:29:38 -0500
committerAdam Young <ayoung@redhat.com>2011-05-24 12:41:11 -0400
commit2a4edbda4d4843980bce5a203135d4895c688211 (patch)
tree1090e6f9c664830d2993283799b091f053d715c4 /install/ui/entity.js
parent006959ff85033a74e6a1f9ddfaa003a264e74746 (diff)
downloadfreeipa-2a4edbda4d4843980bce5a203135d4895c688211.tar.gz
freeipa-2a4edbda4d4843980bce5a203135d4895c688211.tar.xz
freeipa-2a4edbda4d4843980bce5a203135d4895c688211.zip
Fixed adder dialog title.
The IPA.entity_builder has been fixed to use the correct title for the entity's adder dialog. Ticket #1239
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index 026e66f79..8af4af968 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -809,7 +809,14 @@ IPA.entity_builder = function(){
that.adder_dialog = function(spec) {
spec.factory = spec.factory || IPA.add_dialog;
spec.name = spec.name || 'add';
- spec.title = spec.title || IPA.messages.objects.user.add;
+
+ if (!spec.title) {
+ var messages = IPA.messages.objects[entity.name];
+ if (messages) {
+ spec.title = messages.add;
+ }
+ }
+
return that.dialog(spec);
};