diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-14 12:36:58 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-09-20 18:50:46 +0000 |
commit | 21cd1857c86e540348cc07a2a86f3d35b51802d5 (patch) | |
tree | c5af32534d23bf160eddc33736b0e00b748b266e /install/ui/group.js | |
parent | 89c4e9362d08cd67d8e49109c8073c8c5b084c77 (diff) | |
download | freeipa-21cd1857c86e540348cc07a2a86f3d35b51802d5.tar.gz freeipa-21cd1857c86e540348cc07a2a86f3d35b51802d5.tar.xz freeipa-21cd1857c86e540348cc07a2a86f3d35b51802d5.zip |
Fixed posix group checkbox.
In the adder dialog for groups the checkbox has been modified to use
the correct field name "nonposix" and be checked by default.
Note: This is a temporary fix to minimize the changes due to release
schedule. Eventually the field label will be changed into "Non-POSIX
group" and the checkbox will be unchecked by default, which is more
consistent with CLI.
Ticket #1799
Diffstat (limited to 'install/ui/group.js')
-rw-r--r-- | install/ui/group.js | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/install/ui/group.js b/install/ui/group.js index 410a295d..f49c00f0 100644 --- a/install/ui/group.js +++ b/install/ui/group.js @@ -92,13 +92,28 @@ IPA.entity_factories.group = function () { 'cn', 'description', { - factory:IPA.checkbox_widget, - name: 'posix', + factory: IPA.group_nonposix_checkbox_widget, + name: 'nonposix', label: IPA.messages.objects.group.posix, undo: false, - checked: 'checked' + checked: true }, 'gidnumber'] }). build(); }; + +IPA.group_nonposix_checkbox_widget = function (spec) { + + spec = spec || {}; + + var that = IPA.checkbox_widget(spec); + + that.save = function() { + var value = that.checkbox_save()[0]; + // convert posix into non-posix + return [!value]; + }; + + return that; +};
\ No newline at end of file |