diff options
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 |