diff options
-rw-r--r-- | install/static/group.js | 6 | ||||
-rwxr-xr-x | install/static/widget.js | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/install/static/group.js b/install/static/group.js index 21345acc3..c54df26e7 100644 --- a/install/static/group.js +++ b/install/static/group.js @@ -83,7 +83,11 @@ function ipa_group_add_dialog(spec) { that.add_field(ipa_text_widget({name:'cn', undo: false})); that.add_field(ipa_text_widget({name:'description', undo: false})); // TODO: Replace with i18n label - that.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?', undo: false})); + that.add_field(ipa_checkbox_widget({ + name:'posix', + label:'Is this a POSIX group?', + undo: false, + checked:'checked'})); that.add_field(ipa_text_widget({name:'gidnumber', undo: false})); that.add_dialog_init(); diff --git a/install/static/widget.js b/install/static/widget.js index dcc173411..ed2ef8d5d 100755 --- a/install/static/widget.js +++ b/install/static/widget.js @@ -205,14 +205,15 @@ function ipa_text_widget(spec) { function ipa_checkbox_widget(spec) { spec = spec || {}; - + var is_checked = spec.checked || ''; var that = ipa_widget(spec); that.create = function(container) { $('<input/>', { - 'type': 'checkbox', - 'name': that.name + type: 'checkbox', + name: that.name, + checked : is_checked }).appendTo(container); if (that.undo) { |