diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-08-02 17:37:12 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-08-14 08:09:43 +0200 |
commit | 5d2b0fecd57b18b647ff9f243196cf98ead2d9fd (patch) | |
tree | 3a990bedba331edbd7869e34c63213710fbb7df6 /install/ui/add.js | |
parent | 7c99e2d6617a397e4f8f1185032e17b779245181 (diff) | |
download | freeipa.git-5d2b0fecd57b18b647ff9f243196cf98ead2d9fd.tar.gz freeipa.git-5d2b0fecd57b18b647ff9f243196cf98ead2d9fd.tar.xz freeipa.git-5d2b0fecd57b18b647ff9f243196cf98ead2d9fd.zip |
Attribute facet
Created new type of facet: attribute facet. This facet is similar to association facet but it serves for displaying object's multivalued attributes which behaves like association attributes. It will serve as a basis for displaying group's externalmember attribute.
https://fedorahosted.org/freeipa/ticket/2895
Diffstat (limited to 'install/ui/add.js')
-rw-r--r-- | install/ui/add.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/install/ui/add.js b/install/ui/add.js index 4ca0f041..caa1ab5a 100644 --- a/install/ui/add.js +++ b/install/ui/add.js @@ -36,6 +36,7 @@ IPA.entity_adder_dialog = function(spec) { that.retry = typeof spec.retry !== 'undefined' ? spec.retry : true; that.command = null; that.added = IPA.observer(); + that.subject = spec.subject || that.entity.metadata.label_singular; that.show_edit_page = spec.show_edit_page || show_edit_page; @@ -64,9 +65,8 @@ IPA.entity_adder_dialog = function(spec) { that.add( function(data, text_status, xhr) { that.added.notify(); - var label = that.entity.metadata.label_singular; var message = IPA.messages.dialogs.add_confirmation; - message = message.replace('${entity}', label); + message = message.replace('${entity}', that.subject); that.show_message(message); var facet = IPA.current_entity.get_facet(); @@ -184,4 +184,3 @@ IPA.entity_adder_dialog = function(spec) { return that; }; - |