summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 125ef1bc8..5872e81cf 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -333,6 +333,12 @@ IPA.details_section = function (spec){
return that;
};
+ that.multivalued_text = function(spec) {
+ var field = IPA.multivalued_text_widget(spec);
+ that.add_field(field);
+ return that;
+ };
+
that.create_field = function(spec) {
//TODO: replace IPA.details_field with class-specific implementation
@@ -510,17 +516,14 @@ IPA.details_list_section = function (spec){
for (var i = 0; i < fields.length; ++i) {
var field = fields[i];
- var label = field.label;
+ var label = field.label || '';
// no need to get i18n label from metadata
// because it's already done by field.init()
- if (label !== '') {
- label += ':';
- }
-
$('<dt/>', {
- html: label
+ html: label+':',
+ title: label
}).appendTo(dl);
var span = $('<span/>', { 'name': field.name }).appendTo(dl);