diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-10-19 18:11:09 -0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-10-25 15:11:12 +0000 |
commit | 09f3e9869a27adc8c07c305a2aa5107690aa1d04 (patch) | |
tree | 6712f2293f864e0d314e3c340c90be272ded22fa /install/ui/details.js | |
parent | b4ebcad0e0f27ffcad73aa9bd7246f89d0dd7c9f (diff) | |
download | freeipa-09f3e9869a27adc8c07c305a2aa5107690aa1d04.tar.gz freeipa-09f3e9869a27adc8c07c305a2aa5107690aa1d04.tar.xz freeipa-09f3e9869a27adc8c07c305a2aa5107690aa1d04.zip |
Fixed inconsistent required/optional attributes.
The dialogs and details pages have been modified to use the * symbol
to mark required fields. The automount map and the DNS zone dialogs
have been modified to update the required fields according to the
input type.
Ticket #1696, #1973
Diffstat (limited to 'install/ui/details.js')
-rw-r--r-- | install/ui/details.js | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 1e4a9eb5f..5c03de0a3 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -234,44 +234,29 @@ IPA.details_table_section = function(spec) { var tr = $('<tr/>').appendTo(table); var td = $('<td/>', { - 'class': 'section-cell-label' + 'class': 'section-cell-label', + title: field.label }).appendTo(tr); $('<label/>', { name: field.name, - title: field.label, 'class': 'field-label', text: field.label+':' }).appendTo(td); + field.create_required(td); + td = $('<td/>', { - 'class': 'section-cell-field' + 'class': 'section-cell-field', + title: field.label }).appendTo(tr); var field_container = $('<div/>', { name: field.name, - title: field.label, 'class': 'field' }).appendTo(td); field.create(field_container); - - if (field.optional) { - field_container.css('display', 'none'); - - var link = $('<a/>', { - text: IPA.messages.widget.optional, - href: '' - }).appendTo(td); - - link.click(function(field_container, link) { - return function() { - field_container.css('display', 'inline'); - link.css('display', 'none'); - return false; - }; - }(field_container, link)); - } } }; |